coef.causalSEM: Extract Causal Coefficients

View source: R/coef.causalSEM.R

coef.causalSEMR Documentation

Extract Causal Coefficients

Description

coef method for class "causalSEM".

Usage

## S3 method for class 'causalSEM'
coef(x, what = "means")

Arguments

x

an object of class "causalSEM", usually, a result of a call to intervention_effect.

what

string indicating what type of coefficients are to be returned. 'means' returns interventional means, 'var' returns interventional variances, and 'varcov' returns interventional variances and covariances as numeric vectors. 'varcov_matrix' returns interventional variances and covariances as a matrix.

Value

coef.causalSEM numeric vector or matrix.

References

Gische, C., Voelkle, M.C. (2022) Beyond the Mean: A Flexible Framework for Studying Causal Effects Using Linear Models. Psychometrika 87, 868–901. https://doi.org/10.1007/s11336-021-09811-z


christian-gische/causalSEM documentation built on April 26, 2023, 10:36 p.m.