Skip to content
This repository has been archived by the owner on May 19, 2021. It is now read-only.

Another tslm problem #35

Closed
robjhyndman opened this issue Apr 8, 2016 · 1 comment
Closed

Another tslm problem #35

robjhyndman opened this issue Apr 8, 2016 · 1 comment

Comments

@robjhyndman
Copy link

library(fpp)
Cityp <- pmax(fuel$City - 25, 0)
x <- 15:50
z <- pmax(x - 25, 0)
fit3 <- lm(Carbon ~ City + I(City^2) + I(City^3) + I(Cityp^3), data = fuel)
fcast3 <- forecast(fit3, newdata = data.frame(City = x, Cityp = z))
@robjhyndman
Copy link
Author

Sorry. Wrong repo.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant