Learn R Programming

metaSEM (version 1.5.0)

coef: Extract Parameter Estimates from various classes.

Description

It extracts the parameter estimates from objects of various classes.

Usage

# S3 method for tssem1FEM
coef(object, ...)
# S3 method for tssem1FEM.cluster
coef(object, ...)
# S3 method for tssem1REM
coef(object, select = c("all", "fixed", "random"), ...)
# S3 method for wls
coef(object, ...)
# S3 method for wls.cluster
coef(object, ...)
# S3 method for meta
coef(object, select = c("all", "fixed", "random"), ...)
# S3 method for meta3LFIML
coef(object, select = c("all", "fixed", "random", "allX"), ...)
# S3 method for reml
coef(object, ...)
# S3 method for osmasem
coef(object, select=c("fixed", "all", "random"), ...)
# S3 method for osmasem2
coef(object, select=c("fixed", "all", "random"), ...)
# S3 method for mxsem
coef(object, ...)

Value

Parameter estimates for both fixed-effects (if any) and random-effects (if any)

Arguments

object

An object returned from either class tssem1FEM, class tssem1FEM.cluster, class tssem1REM, class wls, class wls.cluster, class meta, class reml, class osmasem, class osmasem2, or class sem

select

Select all for both fixed- and random-effects parameters, fixed for the fixed-effects parameters or random for the random-effects parameters. For meta3LFIML objects, allX is used to extract all parameters including the predictors and auxiliary variables.

...

Further arguments; currently none is used

Author

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

See Also

tssem1, wls, meta, reml, omxGetParameters, osmasem

Examples

Run this code
## Random-effects meta-analysis
model1 <- meta(y=yi, v=vi, data=Hox02)
coef(model1)

## Fixed-effects only
coef(model1, select="fixed")

Run the code above in your browser using DataLab