Question: Programming Assignment 8 STAT 311 Please complete the following problems and submit a file named STAT311-HW8.R to Gradescope. You should start from the provided STAT311-HW8.R

Programming Assignment 8 STAT 311 Please complete the following problems and submit a file named STAT311-HW8.R to Gradescope. You should start from the provided STAT311-HW8.R file on Canvas. Overview Address each of the following questions. As always, you should start from the provided skeleton code. Each question should utilize the model associated with the question group. All questions here utilize the Berkeley acceptance data in BerkeleyData.csv. Students who intend to use the predict(...) function for these problems are advised to consult the docu- mentation in ?predict.glm to determine how it is used for different types of predictions in the context of logistic regression. Note for autograder: When fitting models, you must fit using the format glm(var1~var2 ..., data=BerkeleyData); do not rename variables in the data frame. Question 1 - (7 points total, 1 hidden) Fit a logistic regression model that predicts acceptance based on the sex of the applicant. Save the model as model.q1 a) What are the log-odds of being accepted for a male applicant? Save your answer in the variable q1.a b) What are the odds of being accepted for a female applicant? Save your answer in the variable q1.b c) What is the probability of being accepted

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Mathematics Questions!