12.01.2015 Views

Logistisk regression

Logistisk regression

Logistisk regression

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

u n i v e r s i t y o f c o p e n h a g e n<br />

d e p a r t m e n t o f b i o s t a t i s t i c s<br />

<strong>Logistisk</strong> <strong>regression</strong> på kategorisk variabel i R<br />

Estimation<br />

> glm2 summary(glm2)<br />

Call:<br />

glm(formula = chdI ~ ageGrp, family = binomial)<br />

Deviance Residuals:<br />

Min 1Q Median 3Q Max<br />

-0.8129 -0.6704 -0.6103 -0.5536 1.9756<br />

Coefficients:<br />

Estimate Std. Error z value Pr(>|z|)<br />

(Intercept) -1.7983 0.1512 -11.895 < 2e-16 ***<br />

ageGrp2 0.2121 0.2064 1.027 0.3042<br />

ageGrp3 0.4198 0.2060 2.038 0.0415 *<br />

ageGrp4 0.8605 0.1949 4.415 1.01e-05 ***<br />

--<br />

(Dispersion parameter for binomial family taken to be 1)<br />

Null deviance: 1351.2 on 1362 degrees of freedom<br />

Residual deviance: 1328.7 on 1359 degrees of freedom<br />

AIC: 1336.7<br />

Number of Fisher Scoring iterations: 4<br />

><br />

23 / 42

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!