Beruflich Dokumente
Kultur Dokumente
Lecture outline
Repeated measures
Lab
Articles discussion
Multilevel nature
Patients may be clustered within a surgeon
Multiple surgeons may be clustered within
institutions
Can you think of how household survey data
might be clustered?
What about your own data for this class?
Table 8.1
pill type
subject
none
tablet
capsule
coated
subject average
44.50
7.30
3.40
12.40
16.90
33.00
21.00
23.10
25.40
25.63
19.10
5.00
11.80
22.00
14.48
9.40
4.60
4.60
5.80
6.10
71.30
23.30
25.60
68.20
47.10
51.20
38.00
36.00
52.60
44.45
38.08
16.53
17.42
31.07
25.78
R-squared
=
Adj R-squared =
0.2183
0.1010
Source | Partial SS
df
MS
F
Prob > F
-----------+---------------------------------------------------Model |
2008.6017
3 669.533901
1.86
0.1687
|
pilltype |
2008.6017
3 669.533901
1.86
0.1687
|
Residual | 7193.36328
20 359.668164
-----------+---------------------------------------------------Total | 9201.96498
23 400.085434
24
10.344
R-squared
=
Adj R-squared =
0.8256
0.7326
Source | Partial SS
df
MS
F
Prob > F
-----------+---------------------------------------------------Model | 7596.98166
8 949.622708
8.88
0.0002
|
subject | 5588.37996
5 1117.67599
10.45
0.0002
pilltype |
2008.6017
3 669.533901
6.26
0.0057
|
Residual | 1604.98332
15 106.998888
-----------+---------------------------------------------------Total | 9201.96498
23 400.085434
Previous example
Once we control for subject, we see that there
are significant differences by pill type.
Residual SS from two models:
7193-1604=5589
5589/7193=.78
78% of residual variation has been attributed to
subject-to-subject variation
Subject effect
In the model on the previous slide, takes into
account effect of each subject (subject effect)
Simultaneously raises or lowers all the
measurements on that subject.
Model assumes that subject effects are selected
from a distribution of possible subject effects,
independently of the error term.
i.e., subjects are assumed to be a random sample
from the larger population of subjects to which we
wish to draw inferences.
Subject-to-subject variability
Subject-to-subject variability simultaneously
raises/lowers all the observations on a subject
This induces a correlation
The variability of an individual measurement
can be separated into
(1) that due to subjects and
(2) that due to residual variance
Hierarchical/Multi-level data
analysis
Multivariate approach
Change score as the dependent variable
Regress subsequent outcomes on baseline
controls + baseline outcome (control for initial
value)
Number of obs
F( 1,
198)
Prob > F
R-squared
Adj R-squared
Root MSE
=
200
=
0.39
= 0.5308
= 0.0020
= -0.0031
= 644.58
-----------------------------------------------------------------------------delwght |
Coef.
Std. Err.
t
P>|t|
[95% Conf. Interval]
-------------+---------------------------------------------------------------cinitage |
8.891816
14.16195
0.63
0.531
-19.03579
36.81942
_cons |
191.64
45.57854
4.20
0.000
101.7583
281.5217
------------------------------------------------------------------------------
Number of obs
F( 2,
197)
Prob > F
R-squared
Adj R-squared
Root MSE
=
=
=
=
=
=
200
19.33
0.0000
0.1640
0.1555
532.53
-----------------------------------------------------------------------------lastwght |
Coef.
Std. Err.
t
P>|t|
[95% Conf. Interval]
-------------+---------------------------------------------------------------cinitage |
24.90948
11.81727
2.11
0.036
1.604886
48.21408
initwght |
.3628564
.0660366
5.49
0.000
.232627
.4930858
_cons |
2113.619
202.7309
10.43
0.000
1713.817
2513.42
------------------------------------------------------------------------------
Note: in this type of observational study, using baseline value of birthweight as a covariate is not a
reliable way to check the dependence of change in outcome on a covariate (birth order).
OK in randomized studies where there is no dependence between treatment effects and baseline
values.
Robust se continued
Theoretical justification depends on a
moderately large sample
<100 individuals or lots of x-vars might not work
well.
GEE continued
Must consider & specify:
Distributional family of outcome (normal, binary,
binomial)
What link function to use?
Logit, identity, log, negative binomial, power, probit
Exchangeable
Autoregressive
Unstructured, non-stationary, stationary
Working correlation and robust standard errors
GEE: note on SE
Sensitive to correlation structure that is
specified
Default is exchangeable
Means correlation between dep vars at different
points in time are all the same
Use estat wcorr to see estimated correlations
However, you can add , vce(robust) option to get
robust SE to get SE non dependent on structure
GEE: unstructured SE
, vce(robust) corr(uns)
Wont impose a structure
More confident because you dont impose a
structure that might be incorrect
Downside: a lot of correlation for model to
estimate with many time points
References
Allison, Paul. Course notes from Longitudinal data analysis
using Stata. Statistical horizons: Boston, MA. June 2013.
Baum, CF. 2006, An Introduction to Modern Econometrics
Using Stata. Stata Press, College Station, TX.
Vittinghoff, E, Glidden, D V, Shiboski, S C and McCulloch, C E,
2008, Regression Methods in Biostatistics. Springer-Verlag,
New York.
C
C
EP
TE
D
Table 3: Effect of change in IPV exposure from baseline to 12 months and condom and diaphragm non-adherence at 12 months
Condom non-adherence
in intervention arm
OR (95% CI)
aOR(95% CI)
Diaphragm non-adherence
OR (95% CI)
aOR(95%CI)
Any IPV
Persisting
Incident
Remitting
None
2.33(1.67-3.22)
1.75 (1.15-2.7)
1.47 (1.06-2.04)
1.00
2.2 (1.54-3.1)
1.69(1.08-2.6)
1.38 (0.99-1.94)
1.00
1.54 (1.09-2.17)
1.25 (0.77-2.0)
0.95 (0.68-1.33)
1.00
1.53 (1.06-2.2)
1.2 (0.74-1.95)
0.99 (0.7-1.39)
1.00
2.17(1.56-3.12)
1.45 (0.90-2.27)
1.61 (1.16-2.27)
1.00
2.0 (1.39-2.9)
1.42 (0.88-1.3)
1.51 (1.07-2.1)
1.00
Fear of Violence
Persisting
Incident
Remitting
None
2.08 (1.41-3.03)
2.08 (1.37-3.12)
1.79 (1.28-2.44)
1.00
1.88 (1.25-2.8)
2.0 (1.32-2.1)
1.67(1.2-2.3)
1.00
1.23 (0.81-1.89)
1.61 (1.01- 2.63)
1.09 (0.79-1.51)
1.00
1.22 (0.79-1.89)
1.61 (0.99-2.6)
1.15 (0.82-1.6)
1.64 (1.09-2.5)
2.04 (1.27-3.23 )
1.72 (1.23-2.38)
1.00
1.38 (0.9-2.1)
1.98 (1.23-3.2)
1.55 (1.11-2.2)
1.00
Emotional Abuse
Persisting
Incident
Remitting
None
2.08(1.41-3.03)
1.39 (0.91-2.13)
1.09 (0.77-1.52)
1.00
2.0 (1.37-3.1)
1.25 (0.80-1.95)
1.02 (0.72-1.46)
1.00
1.45 (0.94-2.27)
1.49 (0.92-2.38)
1.19 (0.83-1.72)
1.00
1.36 (0.87-2.1)
1.4 (0.86-2.3)
1.2 (0.82-1.74)
1.00
2.33 (1.47-3.70)
1.41 (0.89-2.22)
1.18 (0.83-2.87)
1.00
2.3 (1.43-3.7)
1.34 (0.83-2.2)
1.09 (0.76-2.58)
1.00
EP
TE
D
Condom non-adherence
in control arm
OR (95% CI)
aOR(95% CI)
AACC
CCEE
PPTT
EEDD