osmasemR2: Calculate the R2 in OSMASEM and OSMASEM3L

osmasemR2R Documentation

Calculate the R2 in OSMASEM and OSMASEM3L

Description

It calculates the R2 of the moderators in explaining the variances in the heterogeneity variances.

Usage

osmasemR2(model1, model0, R2.truncate=TRUE)

Arguments

model1

An object in class osmasem.

model0

An object in class osmasem.

R2.truncate

Whether to truncate the negative R2 to zero.

Value

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.

Author(s)

Mike W.-L. Cheung <mikewlcheung@nus.edu.sg>

See Also

osmasem


metaSEM documentation built on Sept. 30, 2024, 9:21 a.m.