backdr_twoparts: Compute standardized estimates with the 2-parts model

View source: R/backdr_twoparts.R

backdr_twopartsR Documentation

Compute standardized estimates with the 2-parts model

Description

Compute standardized estimates with the 2-parts model.

Usage

backdr_twoparts(data, formula, exposure.name, confound.names, condition.name)

Arguments

data

Dataframe of raw data.

formula

Formula representing the model.

exposure.name

Name of exposure variable.

confound.names

Names of the confound variables.

condition.name

Character vector of confound variable names.

Details

This method is detailed in exercise 4 of chapter 6. It is useful when there are many zeros. Note that the results don't match exactly those obtained with outcome-mode or exposure-model standardization.

Value

Dataframe in a useable format for rsample::bootstraps.

Source

Exercise 4 of chapter 6.

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.