Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

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().

.output_type

Character string. The type of output to return. One of "complete" or "structured". See the Value section for details. Defaults to "complete".

Value

A matrix or a data frame of effects.

See Also


cSEM

Composite-Based Structural Equation Modeling

v0.4.0
GPL-3
Authors
Manuel E. Rademaker [aut, cre] (<https://orcid.org/0000-0002-8902-3561>), Florian Schuberth [aut] (<https://orcid.org/0000-0002-2110-9086>), Tamara Schamberger [ctb] (<https://orcid.org/0000-0002-7845-784X>), Michael Klesel [ctb] (<https://orcid.org/0000-0002-2884-1819>), Theo K. Dijkstra [ctb], Jörg Henseler [ctb] (<https://orcid.org/0000-0002-9736-3048>)
Initial release
2021-04-09

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.