get_prop_scores: Parse 'propensity' input to obtain propensity scores

Description Usage Arguments Value

View source: R/S3_methods.R

Description

the propensity input to plot.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.

Usage

1
get_prop_scores(propensity, data, treat)

Arguments

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

Value

vector of propensity scores


raikens1/BigMatch documentation built on Aug. 6, 2020, 7:28 a.m.