方老师,您好!
我运行H.l1 = d.pgram(abs(sp500),taper=0, output="d",method="l1",plot=T)时有结果,但运行
H.l1 = d.pgram(abs(r1),taper=0, output="d",method="l1",plot=T)
时返回
Problem in d.pgram(abs(r1), taper = 0, output = "d"..: Object "p" not found
Use traceback() to see the call stack
r1是我自己导入的一个收益率序列,我用r1执行前面的代码都可以,但这里就不行了。
O(∩_∩)O谢谢!