Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The data can be retrieved by: install.packages(faraway) library(faraway) data(wbca) in r studio. Problem 3,4,5 are under the same conditions. 3. Problems 3, 4 and 5

The data can be retrieved by:

install.packages("faraway")

library(faraway)

data(wbca)

in r studio.

Problem 3,4,5 are under the same conditions.

image text in transcribedimage text in transcribed
3. Problems 3, 4 and 5 will use the wbca dataset of the faraway package. a. Fit a logistic regression model of Class on all the other variables as predic tors. Which coefficients are significantly different from 0 at the 0.05 significance level? b. Now do variable selection doing backward elimination, eliminating the predictor with the highest p-value for the Wald test for its coefficient until all p-values are lessthan 0.05. Show a summary of your final model. How do the standard errors for your coefficients differ from the corresponding ones in the full model of (a)? 4 a. Starting with the same full model as in (3a) run step (fullmodel) to do backward elimination in a way that achieves the best AIC. Show a summary of your final model. How does it compare to the model found in (3b)? b. Now run step() using forward selection. Show a summary of your final model and if it is different from the model of 4a, compare the AIC values. 5. Parts 3 and 4 used stepwise techniques but different rules for adding or eliminating variables and different stopping rules. Ideally when using criterion based measures like AIC, you would fit every model with at least one predictor and pick the one with the best AIC. a. How many possible models are there that include at least one of the predictors? Explain. b. Let's say we allow two-way interactions as well as main effects. By this I mean construct extra predictors Xi = XX, where i / j. How many possible models are there if we also consider two-way interactions as well as the main effects

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

More Books

Students also viewed these Mathematics questions