robjhyndman / forecast

Forecasting Functions for Time Series and Linear Models
http://pkg.robjhyndman.com/forecast
1.13k stars 342 forks source link

summary.lm does not handle NAs #836

Closed robjhyndman closed 4 years ago

robjhyndman commented 4 years ago

MRE

y <- ts(rnorm(120,0,3) + 1:120 + 20*sin(2*pi*(1:120)/12), frequency=12)
y[10] <- NA
fit <- tslm(y ~ trend + season)
summary(fit)