I’m clearly out of my realm of competence with most of the rugarch functions, but I thought it might be nice to provide an example combining plot.xts and uGARCHroll.
R code from GIST:
HelloI am getting:Error in plot.default(xycoords$x, xycoords$y, type = type, axes = FALSE, : argument 7 matches multiple formal argumentsIn addition: Warning message:In plot.xts(na.omit(merge(DEXJPUS[, 4], ROC(DEXJPUS[, 4], n = 1, : only the univariate series will be plotted
Trace back in klr's blog posts, and you'll see that he's using a new version of plot.xts that is still being worked on quite heavily. Make sure you're using the most recent version from svn in the package xtsExtra on r-forge. pcc
That looks like you're using xts:::plot.xts. You need to use xtsExtra:::plot.xts.
thx for the post.. oddly i get the error 'Error in plot.xts(na.omit(merge(DEXJPUS[, 4], ROC(DEXJPUS[, 4], n = 1, : object 'default.panel' not found'even just copy/paste your code. could not find where default.panel function was coming from.
see above, or if the install from r-forge does not work, go to https://r-forge.r-project.org/scm/viewvc.php/pkg/xtsExtra/R/plot.R?view=markup&root=xts and copy/paste into a script. Run or source that copied/pasted code.default.panel comes from xtsExtra::plot.xts
weird, i have xtsExtra installed and loaded.. but yes when i ran the plot.R code separately everything worked fine after that. will keep banging around in the repository and looking there if stuff isn't working for this new package. thx again.
This isn't working. I have all the packages in their latest versions.The problem is with ... ugarch.panel, it's not doing the math right ... Error in xts(x, order.by = order.by, frequency = frequency, ...) : NROW(x) must match length(order.by) In addition: There were 17 warnings (use warnings() to see them) Warning messages: 1: In .makefitmodel(garchmodel = "sGARCH", f = .sgarchLLH, ... : NaNs produced 2: In arima(data, order = c(modelinc, 0, modelinc), ... : possible convergence problem: optim gave code=1 3: In .makefitmodel(garchmodel = "sGARCH", f = .sgarchLLH, ... : NaNs produced etc. ...: NaNs produced