Question: Using the HomesForSale data set from Lock5With R, fit a linear model for Price of a house given Size and Beds. To access the package
Using the HomesForSale data set from Lock5With R, fit a linear model for Price of a house given Size and Beds. To access the package using R studio, install the package "Lock5WithR". Then, do library(HomesForSale)
a)Use the bootstrap method to perform a hypothesis test about whether the number of beds is needed in a model of price that includes both size and beds. Provide your code and explain your steps for solving the previous problem.
b)Using a residuals vs fitted plot explain why the bootstrap method is needed for this model.
c)Using a residuals vs fitted plot explain why the bootstrap method is not needed if the response is log price instead of price.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
