0

Here is my model:

mymodel <- tslm(activations ~  season + I((sold)) + I((sold1)) + I((sold2)) + trend, data =           
my_df_ts_all)

I can see all the coefficients fine.

But when I run summary(mymodel) I get the following error and not sure why:

Error in quantile.default(resid) :

missing values and NaN's not allowed if 'na.rm' is FALSE

here is the code and the error:

image

Community
  • 1
  • 1
ali.hash
  • 106
  • 1
  • 1
  • 11
  • 2
    Best guess is that `tslm` does not support missing values in your data. Remove rows with missing values before fitting the model. If you need more help, please provide a reproducible example. – Axeman Dec 03 '19 at 19:10
  • `summary()` works on `tslm`, you got an error in your database. You got missing values or not supported values – mischva11 Dec 03 '19 at 19:12
  • Hi @Axeman. You were right! I had missing values in my data set. I am unable to mark this question answered or give you credit, however. Not sure why I am not given that option... – ali.hash Dec 03 '19 at 21:08

0 Answers0