Learn R Programming

efflog (version 1.0)

indirect_effect_or: Indirect effect for loglinear models both with the multiplicative interaction and without it

Description

This function calculates the indirect effect using the odds ratio for any loglinear model and under dummy code parametrization

Usage

indirect_effect_or(x, y, z, w, t)

Arguments

x
it is the parameter $\mu^{Y=1}$
y
it is the parameter $\mu^{X=1,Y=1}$
z
it is the parameter $\mu^{Z=1, Y=1}$
w
it is the parameter $\mu_c^{Z=1}$
t
it is the parameter $\mu_c^{X=1,Z=1}$

Value

References

Gheno Gloria (2015),The causal analysis in the loglinear model

Examples

Run this code
indirect_effect_or(0.6,0.8,0.5,2,0.7)


Run the code above in your browser using DataLab