View source: R/backdr_twoparts.R
backdr_twoparts | R Documentation |
Compute standardized estimates with the 2-parts model.
backdr_twoparts(data, formula, exposure.name, confound.names, condition.name)
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. |
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.
Dataframe in a useable format for rsample::bootstraps
.
Exercise 4 of chapter 6.
# An example can be found in the location identified in the
# source section above at the github site
# https://github.com/FrankLef/FundamentalsCausalInference.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.