trips {TriMatch} | R Documentation |
Estimates propensity scores for three groups
Description
The propensity score is
This function will estimate the propensity scores for each pair of groups (e.g. two treatments and one control).
Usage
trips(thedata, treat, formu = ~., groups = unique(treat), nstrata = 5,
method = "logistic", ...)
Arguments
thedata |
the data frame. |
treat |
vector or factor indicating the treatment/control assignment for
|
formu |
the logistic regression formula. Note that the dependent variable should not be specified and will be modified. |
groups |
a vector of exactly length three corresponding the values in
|
nstrata |
the number of strata marks to plot on the edge. |
method |
the method to use to estimate the propensity scores. Current options are logistic or randomForest. |
... |
other parameters passed to |
Details
Examples
## Not run:
data(tutoring)
formu <- ~ Gender + Ethnicity + Military + ESL + EdMother + EdFather + Age +
Employment + Income + Transfer + GPA
tpsa <- trips(tutoring, tutoring$treat, formu)
head(tpsa)
## End(Not run)
[Package TriMatch version 0.9.9 Index]