Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

We are interested in predicting which houses have median value greater than $30,000 using the variables in theBoston housing dataset.

The datasetBostonwill 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

Produce a new binary variableResultwith a value of 1 if themedv(median value of owner-occupied homes in $1000s) variable is greater than $30k and 0 otherwise. Generate a logistic regression modelforthis question using all the variables in theBostondataset. Please do not forget to remove themedvvariable while building the model.

What is the sensitivity of the model?

0.957

0.143

0.857

0.878

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Advanced Engineering Mathematics

Authors: ERWIN KREYSZIG

9th Edition

0471488852, 978-0471488859

More Books

Students also viewed these Mathematics questions