Skip to content
Prev 3088 / 5632 Next

[R-meta] Difference between univariate and multivariate parameterization

For reference, we are discussing this:

list(~ 1 | studyid, ~ multsample | sampleinstudy), struct="DIAG"

where the data structure is like this:

studyid  sampleinstudy  multsample
1        1              1
1        2              1
2        3              0
3        4              1
3        5              1
3        6              1
4        7              0
5        8              1
5        9              1

~ 1 | studyid adds a random effect corresponding to the study level. This is to account for 'between-study heterogeneity'.

~ multsample | sampleinstudy adds a random effect to the sampleinstudy level. For rows where sampleinstudy is the same, rows where multsample = 0 versus 1 would get different but correlated random effects. However, since there is just one row per sampleinstudy, this never happens. So, each row is gettings its own random effect (just like in the standard multilevel structure). With struct="DIAG", we allow for a different tau^2 for multsample = 0 versus 1. So this models 'within-study heterogeneity' and allows this variance component to differ for single versus multisample studies (and one can then constrain the former to 0 if one likes).

Best,
Wolfgang