frontdr_np: Estimate the Effect Using the Front-Door Method

View source: R/frontdr.R

frontdr_npR Documentation

Estimate the Effect Using the Front-Door Method

Description

Estimate the effect using Front-door method.

Usage

frontdr_np(data, formula, exposure.name, surrogate.name)

frontdoor.r(data, formula, exposure.name, surrogate.name)

Arguments

data

Dataframe of raw data.

formula

Formula representing the model.

exposure.name

Name of exposure variable.

surrogate.name

Name of the surrogate variable.

Details

Estimate the effect using Front-door method. The exposure variable is used as a confounder in the front-door method.

Value

Dataframe in a useable format for rsample::bootstraps.

Source

Section 8.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.