1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
mixed weight age || id: , nolog
est store model_1
esttab model_1,nogap
------------------------------------------------------------------------------
weight | Coef. Std. Err. z P>|z| [95% Conf. Interval]
-------------+----------------------------------------------------------------
age | 3.389281 .115129 29.44 0.000 3.163633 3.61493
_cons | 5.156913 .180158 28.62 0.000 4.80381 5.510016
------------------------------------------------------------------------------
------------------------------------------------------------------------------
Random-effects Parameters | Estimate Std. Err. [95% Conf. Interval]
-----------------------------+------------------------------------------------
id: Identity |
var(_cons) | .6076662 .2040674 .3146395 1.173591
-----------------------------+------------------------------------------------
var(Residual) | 1.524052 .1866496 1.198819 1.937518
------------------------------------------------------------------------------
LR test vs. linear model: chibar2(01) = 16.16 Prob >= chibar2 = 0.0000
xtreg weight age,re mle
------------------------------------------------------------------------------
weight | Coef. Std. Err. z P>|z| [95% Conf. Interval]
-------------+----------------------------------------------------------------
age | 3.389281 .115221 29.42 0.000 3.163452 3.61511
_cons | 5.156913 .1803058 28.60 0.000 4.80352 5.510306
-------------+----------------------------------------------------------------
/sigma_u | .7795294 .1308912 .5609276 1.083324
/sigma_e | 1.234525 .0755956 1.094906 1.391947
rho | .2850594 .0795663 .1521693 .456768
------------------------------------------------------------------------------
LR test of sigma_u=0: chibar2(01) = 16.16 Prob >= chibar2 = 0.000
gllamm weight age, i(id)
------------------------------------------------------------------------------
weight | Coef. Std. Err. z P>|z| [95% Conf. Interval]
-------------+----------------------------------------------------------------
age | 3.38937 .1152127 29.42 0.000 3.163557 3.615183
_cons | 5.155346 .1803718 28.58 0.000 4.801824 5.508868
------------------------------------------------------------------------------
Variance at level 1
------------------------------------------------------------------------------
1.5238042 (.18694777)
Variances and covariances of random effects
------------------------------------------------------------------------------
***level 2 (id)
var(1): .60524948 (.20137659)
------------------------------------------------------------------------------
mixed weight age || id: , nolog
predict fv0, fitted
predict u0, reffects
predict resid, residual
sort id age
local model _b[_cons] + _b[age]*x
twoway (function y = `model',range(0.1149 2.5462) lw(thick) color(blue)) ///
(line weight age,connect(ascending) lw(thick) color(green)) ///
(line fv0 age,connect(ascending) color(black)) ///
(line u0 age, lw(thick) color(red)) ///
(line resid age, lw(thick) color(yellow)), ///
xt(Age (centered at xx)) yt(Height (cm)) ///
legend(off) title(Fitted Growth Curves)
|