Function to estimate propensity score
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
A |
A vector of binary treatment assignment (assumed to be equal to 0 or 1) |
W |
A |
DeltaY |
Indicator of missing outcome (assumed to be equal to 0 if missing 1 if observed) |
DeltaA |
Indicator of missing treatment (assumed to be equal to 0 if missing 1 if observed) |
SL_g |
A vector of characters describing the super learner library to be
used for each of the regression ( |
glm_g |
A character describing a formula to be used in the call to
|
a_0 |
A vector of fixed treatment values at which to return marginal mean estimates. |
tolg |
A numeric indicating the minimum value for estimates of the propensity score. |
stratify |
A |
validRows |
A |
verbose |
A boolean indicating whether to print status updates. |
returnModels |
A boolean indicating whether to return model fits for the outcome regression, propensity score, and reduced-dimension regressions. |
Qn |
A |
adapt_g |
A boolean indicating whether propensity score is adaptive to outcome regression. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.