Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

You can use code: install.packages(faraway) library(faraway) data(prostate) in r studio to get access to the data. Problem 1 Consider the prostate cancer surgery data from

You can use code:

install.packages("faraway")

library(faraway)

data(prostate)

in r studio to get access to the data.

image text in transcribedimage text in transcribed
Problem 1 Consider the prostate cancer surgery data from the faraway library in R. The variable 1psa is a measurement of prostate specific antigen on the log scale. Treat 1psa as the response and all the other variables in the data frame as potential predictors. a) Using backward elimination testing and an alpha cutoff of 0.10, find the best model according to this procedure. Be sure to include the steps and the final model. Answer: b) Use backward selection in a stepwise algorithm to find the best model according to the AIC criterion. Be sure to include the steps and the final model. Answer: c) Use stepwise selection with the "both" option to find the best model according to the BIC criterion. Include the steps and the final model. Answer: d) Use the leaps and bounds algorithm to determine the model with smallest residual sums of squares for each model size from 2 to the maximum possible based on the number of columns in the data frame. Display the results by showing "which" variables were selected for model sizes 2, 3, etc. Answer:e) Using the results from d) and further calculations, graph BIC versus model size for the models selected in part d). We}: model is the overall best model according to BIC

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

Beginning & Intermediate Algebra (Subscription)

Authors: Elayn Martin Gay

6th Edition

0134305124, 9780134305127

More Books

Students also viewed these Mathematics questions

Question

What types of pay scheme may be found?

Answered: 1 week ago

Question

What are your current research studies?

Answered: 1 week ago

Question

3. It is the commitment you show that is the deciding factor.

Answered: 1 week ago