Answered step by step
Verified Expert Solution
Link Copied!

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

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

Linear Algebra and Its Applications

Authors: Gilbert Strang

4th edition

30105678, 30105676, 978-0030105678

More Books

Students also viewed these Mathematics questions