question archive We are interested in predicting which houses have median value greater than $30,000 using the variables in the Boston housing dataset
Subject:StatisticsPrice: Bought3
We are interested in predicting which houses have median value greater than $30,000 using the variables in the
Boston housing dataset.
The dataset Boston will be loaded into the environment once the following command is run:
library(MASS)
Please run the following code in R to learn more about the variables in the dataset:
?Boston
Create a new binary variable Result with a value of 1 if the medv (median value of owner-occupied homes in $1000s) variable is greater than $30k and 0 otherwise.
Create a logistic regression to model this question using all the variables in the Boston dataset.
Please do not forget to remove the medv variable while building the model. Use the information from the model to answer the following two questions. Select the closest answer.
P2-Q3
1.0 point possible (graded, results hidden)
How should one interpret the coefficient of rm?
If rm increases by 1 unit, the natural log of the odds of the house median value being greater than $30,000 will increase by 2.3549, holding all other variables fixed.
If rm increases by 1 unit, the odds of the house median value being greater than $30,000 will increase by 2.3549, holding all other variables fixed.
If rm increases by 1 unit, the probability of the house median value being greater than $30,000 will increase by 2.3549, holding all other variables fixed.
If rm increases by 1 unit, the number of houses with median value greater than $30,000 will increase by 2.3549, holding all other variables fixed.