Skip to content
Commit c915fbd8 authored by mitchelloharawild's avatar mitchelloharawild
Browse files

Made tslm() have identical object structure as lm()

Removed fit$x and fit$data, resolves dwtest() issue #329.

```R
library(fpp)
fit1 <- tslm(sales ~ advert, data=advert)
fit2 <- lm(sales ~ advert, data=advert)

dwtest(fit1)
dwtest(fit2)

fc1 <- forecast(fit1, newdata=data.frame(advert=1:7))
fc2 <- forecast(fit2, newdata=data.frame(advert=1:7))

plot(fc1)
autoplot(fc1)

plot(fc2)
autoplot(fc2)
```
parent 4c4a0ae0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment