Note 2 - Stats for Clinical Trials, Math 150 Jo Hardin...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Stats for Clinical Trials, Math 150 Jo Hardin Model building Consider the HERS data described in your book (page 30); variable description also given on the book website http://www.epibiostat.ucsf.edu/biostat/vgsm/data/hersdata.codebook. txt For now, we will try to predict whether the individuals had a medical condition, medcond . We will use the variables age , weight , diabetes and drinkany > HERS <- read.table("HERS.txt", sep="\t", header=T, na.strings=".") > attach(HERS) Forward > summary(glm(medcond ~ age, family="binomial"))$coef Estimate Std. Error z value Pr(>|z|) (Intercept) -1.60404454 0.400644718 -4.003658 6.237044e-05 age 0.01619155 0.005965348 2.714267 6.642259e-03 Null deviance: 3647.4 on 2762 degrees of freedom Residual deviance: 3640.0 on 2761 degrees of freedom AIC: 3644 > summary(glm(medcond ~ age + weight, family="binomial"))$coef Estimate Std. Error z value Pr(>|z|) (Intercept) -2.169846602 0.496466231 -4.370582 1.239155e-05 age 0.018926204 0.006132171 3.086379 2.026105e-03
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

Page1 / 2

Note 2 - Stats for Clinical Trials, Math 150 Jo Hardin...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online