Professional Documents
Culture Documents
library(fpp2)
# Slide 8
abline(fit)
#Slide 9
fit
summary(fit)
#Slide 11
abline(0,0)
#Slide 15
fitted(fit)[1]
summary(fit)
# Slide 17
confint(fit,level=0.95)
# Slide 19
par(mfrow=c(1,2))
lines(1:50, exp(fit2$coef[1]+fit2$coef[2]*log(1:50)))
plot(log(jitter(Carbon)) ~ log(jitter(City)),
abline(fit2)
# Slide 20
#Slide 22
plot(education, income)
abline(fit5)
summary(fit5)
plot(res5 ~ education)
plot(education,income)
lines(1:50, exp(fit6$coef[1]+fit6$coef[2]*log(1:50)))
plot(log(education),log(income))
abline(fit6)
plot(res6 ~ log(education))
# Slide 23
plot(education, income)
abline(fit3)
summary(fit3)
plot(res3 ~ education)
plot(education,income)
lines(1:50, exp(fit4$coef[1]+fit4$coef[2]*log(1:50)))
plot(log(education),log(income))
abline(fit4)
plot(res4 ~ log(education))
# SLIDE 24
autoplot(uschange[,c("Consumption","Income")]) +
uschange %>%
as.data.frame() %>%
ggplot(aes(x=Income, y=Consumption)) +
geom_point() +
geom_smooth(method="lm", se=FALSE)
# SLIDE 26
summary
#>
#> Call:
#>
#> Coefficients: