
Last chance! 50% off unlimited learning
Sale ends in
matchit
.distance <- distance(formula, model="logit", data, discard=0, reestimate=FALSE, counter=TRUE, ...)
T ~ X1 + X2
, where T
is a binary
treatment indicator and X1
and X2
are the pre-treatment covariates, and T
,
X1
, and X2
are contained formula
.
The dataframe should not include variables with the names psclass
, psweights
, or
pscore
, as these are expressly reserved in the odistance
, depending on the model
to be used.discard
.data
.matchit
command, which calculates the distance
measure used in the matching, usually the propensity score. This function is called directly by
matchit
and does not generally need to be called directly by users; these details are
included for advanced users.help.matchit
to access the matchit reference
manual. The complete document is available online at