我通过API“https://api.coindesk.com/v1/bpi/currentprice/USD.json”动态获取财务数据,为此我使用这个脚本 library("rjson") json_file
这个脚本在Win8.1中由调度程序每分钟由cmd文件运行一次 "C:\Program Files\R\R-3.5.1\bin\x64\Rcmd.exe" BATCH "E:\Rdev\bitcoin.R"
因此,文件夹与csv动态更新的新csv。
假设我创建了GARCH-ARMA模型 require(rugarch) #We can then compute the ARMA(1,1)-GARCH(1,1) model as an example: spec
当我这样做的时候 predict(garch, n.ahead = 5)
我得到了错误 Error in UseMethod("predict") : no applicable method for 'predict' applied to an object of class "c('uGARCHfit', 'GARCHfit', 'rGARCH')"