I have no idea if this is statistically viable, but:
Post mixed of the following sort
one could be tempted to add variances together for further calculation - such as when one is interested in intraclass correlation coefficients as in this Statalist post here.
Adding 0.000703 + 0.0233767 = 0.0240797 is fun and easy; but adding the confidence intervals!?
lincom is the obvious option. However, Stata doesn't make it easy for you to get the correct naming of the random-effect parameters. Doing a
doesn't do the trick - there's no specific legending output for the random effects part.
But
does - but that's unintelligible.
So that means one gets to do the following, that only the most tenured Stata'ist will understand:
That actually gives you the original output - Eureka!
And now the final act:
But that get's me into a dead end and I quit...
I have no idea how to get from here back to the "real" sum of variances (ie 0.0240797) and the actual goal: what are my confidence intervals?
Cheers
Post mixed of the following sort
Code:
[...]
------------------------------------------------------------------------------
Random-effects Parameters | Estimate Std. Err. [95% Conf. Interval]
-----------------------------+------------------------------------------------
_all: Identity |
var(R._time) | .000703 .0006863 .0001038 .0047634
-----------------------------+------------------------------------------------
idpatient: Identity |
var(_cons) | 1.38e-25 3.76e-25 6.70e-28 2.86e-23
-----------------------------+------------------------------------------------
var(Residual) | .0233767 .0012138 .0211148 .025881
------------------------------------------------------------------------------
Adding 0.000703 + 0.0233767 = 0.0240797 is fun and easy; but adding the confidence intervals!?
lincom is the obvious option. However, Stata doesn't make it easy for you to get the correct naming of the random-effect parameters. Doing a
Code:
mixed outcome || _all:R.time || patient: , reml var coeflegend
But
Code:
matrix list e(b) e(b)[1,4] Cwalk: lns1_1_1: lns2_1_1: lnsig_e: _cons _cons _cons _cons y1 .00131434 -3.6300429 -28.619886 -1.8780069
- What does lns2_1_1 stand for?
- And: one can't related to the output'ed parameters - they are nowhere to be found in the orginal mixed result.
You can access these values using the undocumented command _diparm (which stands for display parameter). [...] To use _diparm you have to understand how Stata computes the random effects. Stata computes the variances as the log of the standard deviation (ln_sigma) and computes covariances as the arc hyperbolic tangent of the correlation.
Code:
_diparm lns1_1_1, f(exp(@)^2) d(2*exp(@)^2)
Code:
_diparm lns1_1_1, f(exp(@)^2) d(2*exp(@)^2)
/lns1_1_1 | .000703 .0006863 .0001038 .0047634
Code:
lincom [lns1_1_1]_cons + [lnsig_e]_cons ( 1) [lns1_1_1]_cons + [lnsig_e]_cons = 0 ------------------------------------------------------------------------------ Cwalk | Coef. Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- (1) | -5.50805 .4884959 -11.28 0.000 -6.465484 -4.550615 ------------------------------------------------------------------------------
I have no idea how to get from here back to the "real" sum of variances (ie 0.0240797) and the actual goal: what are my confidence intervals?
Cheers
Comment