[R] Error message when adding drift for Arima model
bgunter@4567 @end|ng |rom gm@||@com
Thu May 9 23:38:53 CEST 2019
Please start by reading and following the posting guide linked at the
bottom of this email. In particular:
1) Post in **plain text** on this plain text list so we don't get the
mangled html of your post.
2) Tell us what package Arima() is in.
On Thu, May 9, 2019 at 2:27 PM Michael Howell <mchowell2 using gmail.com> wrote:
> Hello everyone,
> So this is my first post to this list, I'm trying to fit an Arima (2,0,0)
> model and I think a drift term would help but I'm getting an error term
> when I'm trying to include it. Here is my data:
> 3.121623505 I created a time series object with 24 annual observations. I
> didn't include dates because there isn't an observation for every year.
> tsdata<-ts(read.csv("...\\Pre2001LaunchDateTraining.csv"), start = c(1,1),
> end = c(24,1), frequency = 1) I then created a time series object using the
> Arima() function. fitdata <- Arima(tsdata,c(2,0,0),include.drift = "true")
> After executing I get this error: Error in (order + seasonal$order) >
> 1 & include.drift: operations are possible only for numeric, logical or
> complex types Traceback: 1. Arima(tsdata, c(2, 0, 0), include.drift =
> Any help would be greatly appreciated!
> [[alternative HTML version deleted]]
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide
> and provide commented, minimal, self-contained, reproducible code.
[[alternative HTML version deleted]]
More information about the R-help