Stata 9, Epi tables, Survey, Factor • Tables for epidemiologists

advertisement
Stata 9, Epi tables, Survey, Factor
• Tables for epidemiologists
• Survey commands
• Factor analysis
29.05.2016
H.S.
1
Tables for epidemiologists
• Commands
–
–
–
–
cs
ir
cc
mcc
Cohort study with incidence proportion
Cohort study with incidence rate
Case-control
Matched case-control
• Example
– cc diseased exposed, by(sex) Stratified MH-OR
• Calculator (i=immideate)
– csi 100 50 900 950
– iri 100 50 1000 1000
– cci 10 90 5 95
29.05.2016
RR
RR
OR
H.S.
2
Survey commands
• Purpose
– A family of commands to account for survey
designg effects (stratification (and clustering))
• Workflow
– svyset [pweight=p1],strata(country)
probability weights and stratification
– svy:mean x1
weighted mean
set
– Regressions do not need weighting
29.05.2016
H.S.
3
Factor analysis
• Purpose
– Find latent factors from a large set of variables
• Workflow
–
–
–
–
–
–
factor x1 x2 x3
factor analysis
screeplot
plot eigenvalues
factor x1 x2 x3, factors(3) max 3 factors
estat kmo
sampling OK?
rotate
varimax rotation
loadingplot
2 first factors
29.05.2016
H.S.
4
Download