It calculates the R2 of the moderators in explaining the variances in the heterogeneity variances.
osmasemR2(model1, model0, R2.truncate=TRUE)
An object in class osmasem
.
An object in class osmasem
.
Whether to truncate the negative R2 to zero.
model1
and model0
are the models with and without
the moderators, respectively. The function does not check whether the
models are nested. It is the users' responsibility to make sure that
the models with and without the moderators are nested. It returns a
list of the diagonals of the heterogeneity variances of the
models without and with the moderators, and the R2.