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(prostate) in r studio. Problem 1 Consider the prostate cancer surgery data from the faraway library in

The data can be retrieved by:

install.packages("faraway")

library(faraway)

data(prostate)

in r studio.

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

More Books

Students also viewed these Mathematics questions

Question

If so, do you use a computerized program? LO.1

Answered: 1 week ago

Question

1. Background knowledge of the subject and

Answered: 1 week ago

Question

2. The purpose of the acquisition of the information.

Answered: 1 week ago