Question
Using R studio install the package Lock5WithR and library(HomesForSale) Using the HomesForSale data set from Lock5With R, fit a linear model for Price of a
Using R studio install the package "Lock5WithR" and library(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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started