Description Usage Arguments Value
Estimate the propensity score (PS), g(1|W), the probability of receiving
treatment conditional on baseline covariates. In a randomized experiment or
A/B test, this is usually known to be g(1|W) = 0.5. In such a case, this
known probability is passed in via Lrnr_prob_known
.
1 | fit_ps_mech(train_data, valid_data, learner)
|
train_data |
A |
valid_data |
A |
learner |
An instantiated learner object, with class inheriting from
|
A list
(as required by cross_validate
)
containing two slots populated with data.table
s
for the training and validation data (for a given cross-validation split).
Each data.table
has two columns, corresponding to
estimates of the conditional probability of receiving the treatment ("g1")
or the conditional probability of the treatment being withheld ("g0"). Note
that values of these two columns should add up to one for any given row.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.