create.Tau2 {metaSEM} | R Documentation |
Create a variance component of the heterogeneity of the random effects
Description
It creates variance component of the heterogeneity of the random effects by decomposing the variance component into matrices of correlation and standard deviations.
Usage
create.Tau2(RAM, no.var, Tau1.labels=seq(no.var),
RE.type = c("Diag", "Symm", "Zero", "User"),
level=c("single", "between", "within"),
RE.User=NULL, Transform = c("expLog", "sqSD"),
RE.startvalues=0.05)
Arguments
RAM |
The RAM model for testing. |
no.var |
If |
Tau1.labels |
Parameter labels in |
RE.type |
Either |
level |
whether it is for single-level, between-, or within-level analyses. The only difference are the names of the matrices. |
RE.User |
It represents the |
Transform |
Either |
RE.startvalues |
Starting values for the variances. |
Value
A list of MxMatrix-class
. The variance component is
computed in Tau2
.
Author(s)
Mike W.-L. Cheung <mikewlcheung@nus.edu.sg>
See Also
osmasem
,
create.V
, create.vechsR
Examples
T0 <- create.Tau2(no.var=4, RE.type="Diag", Transform="expLog", RE.startvalues=0.05)
T0
T1 <- create.Tau2(no.var=4, Tau1.labels=c("a", "b", "c", "d"))
T1