mediation_NIE: Estimate the Natural Indirect Effect of a Mediator Variable

View source: R/mediation_NIE.R

mediation_NIER Documentation

Estimate the Natural Indirect Effect of a Mediator Variable

Description

Estimate the natural indirect effect of a mediator variable.

Usage

mediation_NIE(data, formula, exposure.name, mediator.name, confound.names)

Arguments

data

Dataframe of raw data.

formula

Formula representing the model.

exposure.name

Name of exposure variable.

mediator.name

Name of mediator variable.

confound.names

Names of the confound variables.

Details

Estimate the natural indirect effect of a mediator variable with parametric assumptions.

Value

Dataframe in a useable format for rsample::bootstraps.

Source

section 12.3

Examples

# An example can be found in the location identified in the
# source section above at the github site
# https://github.com/FrankLef/FundamentalsCausalInference.

FrankLef/fciR documentation built on Nov. 12, 2023, 6:09 a.m.