| get_prop_scores | R Documentation |
propensity input to obtain propensity scoresthe propensity input to plot.auto_strata or
plot.manual_strata can be propensity scores, a propensity model, or a
formula for propensity score. This function figures out which type
propensity is and returns the propensity scores. Returns the
propensity score on the response scale (rather than the linear predictor), so
the scores are the predited probabilities of treatment.
get_prop_scores(propensity, data, treat)
propensity |
either a vector of propensity scores, a model for propensity, or a formula for propensity scores |
data, |
the analysis set data within a stratum |
treat, |
the name of the treatment assignment column |
vector of propensity scores
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.