calc_clever_covariate: Calculate the Clever Covariate for the TMLE step of the ATE

View source: R/utils_ATE.R

calc_clever_covariateR Documentation

Calculate the Clever Covariate for the TMLE step of the ATE

Description

Calculate the Clever Covariate for the TMLE step of the ATE

Usage

calc_clever_covariate(ghat_1_w, data, exposure, h_aw_trunc_lvl, type = "reg")

Arguments

ghat_1_w

Numeric vector of values in the unit interval that represent the predicted probabilities of being treated/exposed.

data

Dataframe that includes treatement/exposure

exposure

Variable name in data that the clever covariate is calculated for

h_aw_trunc_lvl

Truncation level of the clever covariate

type

Type of clever covariate to calculate, reg is standard difference in inverse weightings, mod is used for the additive ATE

Details

Calculates the clever covariate or difference in inverse propensity scores for treatment used in the TMLE update step

Value

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.


blind-contours/CVtreeMLE documentation built on June 22, 2024, 8:53 p.m.