mediation_np: Estimate Non-parametric Mediation Effect

View source: R/mediation.R

mediation_npR Documentation

Estimate Non-parametric Mediation Effect

Description

Estimate non-parametric mediation effect.

Usage

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

mediation.r(data, formula, exposure.name, mediator.name, confound.names)

nonparamediation.r(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 non-parametric mediation effect using the tidyverse way of coding.

Value

Dataframe in a useable format for rsample::bootstraps.

Source

section 12.3

See Also

mediation_calc

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.