cSEM (version 0.2.0)

calculateEffects: Internal: Calculate direct, indirect and total effect

Description

The direct effects are equal to the estimated coefficients. The total effect equals (I-B)^-1Gamma. The indirect effect equals the difference between the total effect and the indirect effect. In addition, the variance accounted for (VAF) is calculated. The VAF is defined as the ratio of a variables indirect effect to its total effect. Helper for generic functions summarize() and assess().

Usage

calculateEffects(
 .object       = NULL,
 .output_type  = c("data.frame", "matrix")
)

Arguments

.object

An R object of class cSEMResults resulting from a call to csem().

Value

A matrix or a data frame of effects.

See Also

assess(), summarize() cSEMResults