ERROR: Non-numeric argument in refitting ARIMA model in R
up vote
-1
down vote
favorite
I have built a ARIMA model with the following code:
fit = arima(PS_data,order=c(1,1,9))
Then, when i want to refit the built model above with a new dataset, problem comes and this error came out:
Error in abs(model$arma[c(3, 4, 7)]) : non-numeric argument to
mathematical function
I have tried to convert the new dataset to numeric type, but it still doesn't work. Any solution for to solve this issue?
Here's my code for refitting process:
Test.data <- import("Test_Data_set.csv")
Test.data$Quantity <- sapply(Test.data$Quantity,as.numeric)
class(Test.data$Quantity) #it shown "numeric"
refit <- Arima(Test.data$Quantity,model=fit) #error out from here
Thanks!!
r rstudio arima
add a comment |
up vote
-1
down vote
favorite
I have built a ARIMA model with the following code:
fit = arima(PS_data,order=c(1,1,9))
Then, when i want to refit the built model above with a new dataset, problem comes and this error came out:
Error in abs(model$arma[c(3, 4, 7)]) : non-numeric argument to
mathematical function
I have tried to convert the new dataset to numeric type, but it still doesn't work. Any solution for to solve this issue?
Here's my code for refitting process:
Test.data <- import("Test_Data_set.csv")
Test.data$Quantity <- sapply(Test.data$Quantity,as.numeric)
class(Test.data$Quantity) #it shown "numeric"
refit <- Arima(Test.data$Quantity,model=fit) #error out from here
Thanks!!
r rstudio arima
add a comment |
up vote
-1
down vote
favorite
up vote
-1
down vote
favorite
I have built a ARIMA model with the following code:
fit = arima(PS_data,order=c(1,1,9))
Then, when i want to refit the built model above with a new dataset, problem comes and this error came out:
Error in abs(model$arma[c(3, 4, 7)]) : non-numeric argument to
mathematical function
I have tried to convert the new dataset to numeric type, but it still doesn't work. Any solution for to solve this issue?
Here's my code for refitting process:
Test.data <- import("Test_Data_set.csv")
Test.data$Quantity <- sapply(Test.data$Quantity,as.numeric)
class(Test.data$Quantity) #it shown "numeric"
refit <- Arima(Test.data$Quantity,model=fit) #error out from here
Thanks!!
r rstudio arima
I have built a ARIMA model with the following code:
fit = arima(PS_data,order=c(1,1,9))
Then, when i want to refit the built model above with a new dataset, problem comes and this error came out:
Error in abs(model$arma[c(3, 4, 7)]) : non-numeric argument to
mathematical function
I have tried to convert the new dataset to numeric type, but it still doesn't work. Any solution for to solve this issue?
Here's my code for refitting process:
Test.data <- import("Test_Data_set.csv")
Test.data$Quantity <- sapply(Test.data$Quantity,as.numeric)
class(Test.data$Quantity) #it shown "numeric"
refit <- Arima(Test.data$Quantity,model=fit) #error out from here
Thanks!!
r rstudio arima
r rstudio arima
asked Nov 10 at 20:10
jklove
14
14
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53242985%2ferror-non-numeric-argument-in-refitting-arima-model-in-r%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown