Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using Rstudio We continue to consider the use of a logistic regression model to predict the probability of default using income and balance on the

Using Rstudio

We continue to consider the use of a logistic regression model to predict the probability ofdefaultusing income andbalanceon theDefaultdata set. In particular, we will now compute estimates for the standard errors of the income and balance logistic regression coefficients in two different ways: (1) using the bootstrap, and (2) using the standard formula for computing the standard errors in theglm()function. Do not forget to set a random seed before beginning your analysis.

(a) Using thesummary()andglm()functions, determine the estimated standard errors for the coefficients associated with income and balance in a multiple logistic regression model that uses both predictors.

(b)Write the function,boot.fn(), that takes as input the Default data set as well as an index of the ob- servations, and that outputs the coefficient estimates for income and balance in the multiple logistic regression model.

(c)Use theboot()function together with yourboot.fn()function to estimate the standard errors of the logistic regression coefficients for income and balance.

(d)Comment on the estimated standard errors obtained using theglm()function and using your bootstrap function.

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

Step: 3

blur-text-image

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

Intermediate Algebra (Subscription)

Authors: Elayn Martin Gay

7th Edition

0134305116, 9780134305110

More Books

Students also viewed these Mathematics questions

Question

Discuss the impact of religion on individual behavior.

Answered: 1 week ago