Learn R Programming

metaSEM (version 1.2.4)

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 meta3X
coef(object, select = c("all", "fixed", "random", "allX"), …)
# S3 method for reml
coef(object, …)
# S3 method for MxRAMModel
coef(object, …)
# S3 method for osmasem
coef(object, select=c("fixed", "all", "random"), …)

Arguments

object

An object returned from either class tssem1FEM, class tssem1FEM.cluster, class tssem1REM, class wls, class wls.cluster, class meta, class reml or class MxRAMModel

select

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

Further arguments; currently none is used

Value

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

See Also

tssem1, wls, meta, reml, omxGetParameters, osmasem

Examples

Run this code
# NOT RUN {
## 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