coef.indirect_proportion {manymome}R Documentation

Extract the Proportion of Effect Mediated

Description

Return the proportion of effect mediated in the output of indirect_proportion().

Usage

## S3 method for class 'indirect_proportion'
coef(object, ...)

Arguments

object

The output of indirect_proportion()

...

Not used.

Details

It extracts and returns the element proportion in the input object.

Value

A scalar: The proportion of effect mediated.

See Also

indirect_proportion()

Examples


library(lavaan)
dat <- data_med
head(dat)
mod <-
"
m ~ x + c1 + c2
y ~ m + x + c1 + c2
"
fit <- sem(mod, dat, fixed.x = FALSE)
out <- indirect_proportion(x = "x",
                           y = "y",
                           m = "m",
                           fit = fit)
out
coef(out)


[Package manymome version 0.2.2 Index]