# st: gllamm for meta-analysis w/ multiple outcomes within studies

 From Georg Matt To statalist@hsphsun2.harvard.edu Subject st: gllamm for meta-analysis w/ multiple outcomes within studies Date Mon, 26 Mar 2007 11:11:08 -0700

```Dear Stata gllamm experts,

I would very much appreciate comments and insights on using gllamm
(or xtmixed) for a meta-analysis with multiple outcomes within each
study.  This appears to be a situation that cannot be handled with
the existing meta-analysis routines in Stata (e.g., metareg), because
these routines assume that there is only one effect size per study.

Say, there are 100 independent studies, each with between 1 and 10
effect sizes.  Each effect size has a (conditional) variance
associated with it, the inverse of which typically serves as a weight
in, for instance, WLS analyses. The effect sizes are correlated
within studies but not between studies.    There are covariates to
account for within and between study differences in effect size.

I would like to use gllamm (or xtmixed) to approach this as a two-
level analysis problem with multiple correlated effect sizes (level
1) nested within studies (level 2).

(A) Assume that all level 1 slopes are fixed and only the intercept
is random.
How can this be done in gllamm or xtmixed?  Would something like the
following work?

1. v is the conditional variance of each effect size d; lns is the
log standard deviation.
gen lns = ln(v)/2

2. define the eq to transfer the log standard deviations to gllamm
eq het: lns

3. gllamm syntax: x1 - x3 a re covariates with fixed slopes
gllamm d x1 x2 x3, i(id) s(het) constraint( ????)   adapt nip(10)

What is/are the proper constraint(s) here?

(B) Assuming that there is also a random slope at level one (variable
z), would the following work?

1. as before
2. as before
2.1 define eqs for intercept and slope
eq st_c: cons
eq st_z: z

3.1 gllamm syntax
gllamm d x1 x2 x3 z, i(id) nrf(2) eqs(st_c st_z) s(het) constraint

What is/are the proper constraint(s) here?

I hope these questions make sense.  If not, please let me know, and I
would be happy to clarify.

Georg E. Matt,
PhD
Georg E. Matt, PhD
Professor of
Psychology
Professor of Psychology
Department of Psychology            Measurement and Evaluation
Research Group
San Diego State University
9245 Sky Park Court Suite 225
San Diego CA
92182-4611                                                        San
Diego CA 92123
Voice: (619)
594-6262
(619) 594-0503
FAX: (619)
594-1332
(619) 594-0274
http://www.psychology.sdsu.edu/faculty/matt/

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/
```