prop_quant | R Documentation |
Stratifying on the quantiles of the propensity score.
prop_quant(
data,
formula,
exposure.name,
confound.names,
probs = 0:4/4,
quant_var = "pquants"
)
data |
Dataframe of raw data. |
formula |
Formula representing the model. |
exposure.name |
Name of exposure variable. |
confound.names |
Names of the confound variables. |
probs |
Vector of probability for the quantiles. |
quant_var |
Name of the quantile variable. Default is "pquants". |
Stratifying on the quantiles is useful to identify the possible interactions between the propensity scores and the exposure.
Dataframe in a useable format for rsample::bootstraps
.
Section 10.3. p. 180.
# 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.