Question
1. Suppose we collect data for a group of students in a statistics class with variablesX1=hours studied,X2= undergrad GPA, andY= receive an A. We fit
1. Suppose we collect data for a group of students in a statistics class with variablesX1=hours studied,X2= undergrad GPA, andY= receive an A. We fit alogistic regression and
produceestimated coefficient,0=6, 1= 0.05, 2= 1.
(a)Estimate the probability that a student who studies for 40hand has an undergrad GPA of 3.5, gets an A in the class.
(b)How many hours would the student in part (a) need to study to have a 50% chance of getting an A in the class?
Use R or R studio for this question. Besides answers and steps, please also prepare the.R filefor R script)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started