Note 3 - 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 Logistic Regression example # 1 1. Consider the HERS data described in your book (age 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) > 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 > 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 weight 0.005279148 0.002742218 1.925138 5.421212e-02 > summary(glm(medcond ~ age+diabetes, family="binomial"))$coef
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.

This note was uploaded on 02/17/2012 for the course MATH 151 taught by Professor Jo.h during the Fall '10 term at Pomona College.

Page1 / 2

Note 3 - 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