u n i v e r s i t y o f c o p e n h a g e n 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
Dag 4: Linear regression
Susanne Rosthøj
Section of Biostatistics Department of Public Health University of Copenhagen sr@biostat.ku.dk
Dag 4: Linear regression Susanne Rosthj Section of Biostatistics - - PowerPoint PPT Presentation
u n i v e r s i t y o f c o p e n h a g e n 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 Dag 4: Linear regression Susanne Rosthj Section of Biostatistics Department of Public Health University of Copenhagen sr@biostat.ku.dk u n i v e
u n i v e r s i t y o f c o p e n h a g e n 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
Section of Biostatistics Department of Public Health University of Copenhagen sr@biostat.ku.dk
u n i v e r s i t y o f c o p e n h a g e n 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
2 / 11
u n i v e r s i t y o f c o p e n h a g e n 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
3 / 11
u n i v e r s i t y o f c o p e n h a g e n 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
4 / 11
u n i v e r s i t y o f c o p e n h a g e n 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
data vitamin; infile ’http://publicifsv.sund.ku.dk/~sr/MPH/datasets/vitamin.txt’ URL firstobs=2; input country vitd age bmi sunexp intake; run; proc glm data=vitamin plots=DiagnosticsPanel; model vitd = bmi / solution clparm; where country=4; * Irland; run;
5 / 11
u n i v e r s i t y o f c o p e n h a g e n 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
6 / 11
u n i v e r s i t y o f c o p e n h a g e n 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
i + ǫi
proc glm data=vitamin plots=DiagnosticsPanel; model vitd = bmi bmi*bmi / solution clparm; where country=4; * Irland; run;
7 / 11
u n i v e r s i t y o f c o p e n h a g e n 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
8 / 11
u n i v e r s i t y o f c o p e n h a g e n 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
25 30 35 20 40 60 80 100 BMI Vitamin D
u n i v e r s i t y o f c o p e n h a g e n 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
10 / 11
u n i v e r s i t y o f c o p e n h a g e n 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
11 / 11