[R] Error in model.frame.default(formula = formula, data = data, drop.unused.levels = TRUE, : object is not a matrix
ruipbarradas at sapo.pt
Wed Mar 1 19:37:51 CET 2017
>What is function logret? After loading the packages I've tried
No documentation for ‘logret’ in specified packages and libraries:
you could try ‘??logret’
Besides, how can you use a function logret(data1.ts, ...) and then do
depmix(logret ~ 1, ...)
Suddenly logret becomes a column in dataset deret.
Revise your code, please.
And in order for us to test it you should also post the output of the
dput(head(data1, 30)) # paste the output of this in your next mail
Hope this helps,
Em 01-03-2017 10:51, Allan Tanaka escreveu:
> I have encountered the following error, when running 'depmix' function, which I think
> has something to do with my data, and I cannot understand why, even though i have converted my data into as.matrix()
> See attached file
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help