Question: Using R studio Install Package Lock5WithR library(HomesForSale) For this problem use the HomesForSale data from the Lock5withR package. See page 30, https://cran.r-project.org/web/packages/Lock5withR/Lock5withR.pdf, for a description

Using R studio

Install Package "Lock5WithR"

library(HomesForSale)

For this problem use the HomesForSale data from the Lock5withR package. See page 30, https://cran.r-project.org/web/packages/Lock5withR/Lock5withR.pdf, for a description of the variables. Alternatively, you can use help(HomesForSale).

Using the HomesForSale data set from Lock5With R, fit a linear model for Price of a house given Size and Beds.

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related General Management Questions!