Question: Please use code: install.packages(faraway) library(faraway) data(aatemp) to access the data in r studio. Problem 2 The aatemp data in the faraway library.r comes from the
Please use code:
install.packages("faraway")
library(faraway)
data(aatemp)
to access the data in r studio.

Problem 2 The aatemp data in the faraway library.r comes from the U.S. Historical Climatological Network. The data report annual mean temperatures in Ann Arbor Michigan for roughly 150 years. a) With temp as the response, t a regression spline with intercept using B-spline basis functions of year and 8 degrees of freedom. Show the tted curve on the scatter plot of temp versus year. Answer: b) How many knots does the model in a) have? Answer: c) Compute AIC, BIC and adjusted Rsquare for the model in a). Answer: d) Compute A10 for the b-spline models with degrees of freedom 4, 5, 6. . .. 2D. Plot AIC versus degrees of freedom. 1Which of these models is the best, according to AIC? Answer: e) Show the tted curve from the best model selected in d) on the scatter plot of temp versus year. How does it compare with the curve in a]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
