calc_clever_covariate | R Documentation |
Calculate the Clever Covariate for the TMLE step of the ATE
calc_clever_covariate(ghat_1_w, data, exposure, h_aw_trunc_lvl, type = "reg")
ghat_1_w |
|
data |
Dataframe that includes treatement/exposure |
exposure |
Variable name in |
h_aw_trunc_lvl |
Truncation level of the clever covariate |
type |
Type of clever covariate to calculate, |
Calculates the clever covariate or difference in inverse propensity scores for treatment used in the TMLE update step
A numeric
vector of the same length as vals
, where
the returned values are bounded to machine precision. This is intended to
avoid numerical instability issues.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.