Question: Answer based on R language We consider the Boston dataset that comes with the MASS package in R. Load the data set with the command
Answer based on R language

We consider the Boston dataset that comes with the MASS package in R. Load the data set with the command > df = MASS:: Boston If you do not have the MASS package installed, please use this line to do so > install.packages ("MASS") We model the median home value medv by means of the regression model medv = Bo + B1. age + B2. rm + B3 .chas + BA. rad + E Compute the p-value (round to 4 digits) for the hypotheses test H, : B4 = 0 against the alternative H :B4 #0 (Hint: Construct two linear regression models: First use the variables age, rm and chas. Then compute a further linear model that uses the same predictors and additionally the predictor rad and compare the models with an ANOVA). Answer: We consider the Boston dataset that comes with the MASS package in R. Load the data set with the command > df = MASS:: Boston If you do not have the MASS package installed, please use this line to do so > install.packages ("MASS") We model the median home value medv by means of the regression model medv = Bo + B1. age + B2. rm + B3 .chas + BA. rad + E Compute the p-value (round to 4 digits) for the hypotheses test H, : B4 = 0 against the alternative H :B4 #0 (Hint: Construct two linear regression models: First use the variables age, rm and chas. Then compute a further linear model that uses the same predictors and additionally the predictor rad and compare the models with an ANOVA)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
