Answered step by step
Verified Expert Solution
Question
1 Approved Answer
sex
sex<-factor(rep(c("M","F"),times=c(5,5))) mean.age<-c(23.2,36.5,54.3,69.2,79.5,23.2,36.5,54.3,69.2,79.5) taking<-c(21,32,70,43,19,46,89,169,98,51) total<-c(704,628,775,338,118,784,789,1016,434,247) drugs<-data.frame(sex=sex,mean.age=mean.age,taking=taking,total=total) response<-taking/total logodds<-log(response/(1-response))
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