R/nuisance_fn.R
estimate_treat_prob.RdEstimate probability of receiving each level of treatment
estimate_treat_prob(treat, covar, treat_form, return_models)
| treat | A |
|---|---|
| covar | A |
| treat_form | The right-hand side of a regression formula for the working model of treatment probability as a function of covariates |
| return_models | If |
A list where the first element is estimate of Pr(treat = 1 | covar)
for covar equal to inputted values of covar
and second element is estimate of Pr(treat = 0 | covar)
for covar equal to inputted values of covar