It creates variance component of the heterogeneity of the random effects by decomposing the variance component into matrices of correlation and standard deviations.
create.Tau2(RAM, no.var, RE.type = c("Diag", "Symm", "Zero", "User"),
RE.User=NULL, Transform = c("expLog", "sqSD"),
RE.startvalues=0.05)
The RAM model for testing. no.var
is calculated from it.
If RAM
is missing, the user has to specify
the no.var
argument. It represents the no.var
by no.var
of the random effects).
Either "Diag"
, "Symm"
, "Zero"
or "User"
. If
it is"Diag"
(the default if missing), a diagonal matrix is used
for the random effects meaning that the random effects are
independent. If it is "Symm"
, a symmetric matrix is used for the random effects on the covariances
among the correlation (or covariance) vectors. If it is
"Zero"
, a zero matrix is assumed on the variance component of
the random effects. If it is "User"
, users have to specify the
RE.true
argument.
It represents the no.var
by no.var
symmetric matrix
of TRUE
or FALSE
for the variance component. If the
elements are FALSE
, they are fixed at 0.
Either "expLog"
or "sqSD"
. If it is
"expLog"
, the variances are estimated by applying a log and exp
transformation. If it is "sqSD"
, the variances are estimated by
applying a square on the SD. The transformation may improve the
estimation when the heterogeneity is small or close to zero.
Starting values for the variances.
A list of MxMatrix-class
. The variance component is
computed in Tau2
.
# NOT RUN {
T0 <- create.Tau2(no.var=6, RE.type="Diag", Transform="expLog", RE.startvalues=0.05)
T0
# }
Run the code above in your browser using DataLab