新手问个初级问题,还请各位不吝赐教。
首先我想模拟一个Y(t)=0.75Y(t-1)+e(t)-0.75e(t-1)的方程,google了一下,给出的列子是:
## armaSim -
# Simulation:
x = armaSim(model = list(ar = c(0.5, -0.5), ma = 0.1), n = 1000)
但是套用时会说could not find function armasim。。。
紧接着,因为我需要fit an ARMA(1,1) to the simulated data,于是继续google,得到例子:
## armaFit -
# Estimate the Parameters:
fit = armaFit(~ arma(2, 1), data = x)
print(fit)
但是套用的时候又被说could not find function armafit。。。(泪牛满面)
然后我试验了上课时本来ok的GARCH的命令,得到了could not find function garch.sim。。。
到这里俺就彻底晕了……
还请各位老师同学指点一二,感谢感谢。


雷达卡





京公网安备 11010802022788号







