* This generates an equation (and from it a FRML) to compute the moving
* average of the data
*
dim macoeffs(malength) /*定义macoeffs的维度*/
comp macoeffs = %const(1./malength) /*%const(x) 表示用常数x填充矩阵macoeffs */
equation(identity,coeffs=macoeffs) threqn credthr /*定义一个方程等式threqn:credthr=1./malength*credit{0}+1./malength*credit{1}*/
# credit{0 to malength-1}
frml(equation=threqn,identity) thrfrml /*将上述定义的方程threqn重新复制为公式thrfrml(frml可以表示非线性等式关系)
*
以及它在后面的group指令中加入了 thrfrml:/*公式thrfrml必须使用group组合为model(模型),才可以使用forecast对model进行预测*/
其实很好理解,就是将门限变量表示为信用变量的移动平均,先设定一个方程,然后使用frml设置为公式,再和前面的公式group组合为model,然后使用forecast对model进行预测,详细说明见上面的解释。