CDO - 相关系数和回归系数的计算

本篇随笔将介绍 CDO 进行相关系数、协方差和回归系数计算的相关功能

相关系数和协方差 Correlation and Covariance

<operator> infile1 infile2 outfile

OperatorsDescription
fldcorand

timcorand

fldcovarand

timcovarand

Regression 回归

<operator>[,equal=TRUE] infile outfile

OperatorsDescription
regres[,equal=TRUE]



参数 equal :默认假定所有时间步都是等距的,对于时间步的分布非等距时设为 FALSE
detrend[,equal=TRUE]



  • 例子
    对 infile 去趋势 并输出到 outfile 中:

    1
    cdo detrend infile outfile  

<operator>[,equal=TRUE] infile outfile1 outfile2

OperatorsDescription
trend[,equal=TRUE]



<operator>[,equal=TRUE] infile afile bfile outfile

OperatorsDescription
addtrend[,equal=TRUE]
subtrend[,equal=TRUE]