Description Usage Arguments Details Examples
The propensity score is
e(X)=P({ W }=1|X)
This function will estimate the propensity scores for each pair of groups (e.g. two treatments and one control).
1 2 |
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 |
{ PS }_{ 1 }=e({ X }_{ { T }_{ 1 }C })=Pr(z=1|{ X }_{ { T }_{ 1 }C })
{ PS }_{ 2 }=e({ X }_{ { T }_{ 2 }C })=Pr(z=1|{ X }_{ { T }_{ 2 }C })
{ PS }_{ 3 }=e({ X }_{ { T }_{ 2 }{ T }_{ 1 } })=Pr(z=1|{ X }_{ { T }_{ 2 }{ T }_{ 1 } })
1 2 3 4 5 6 7 8 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.