calc_ATE_estimates: Calculate the ATE and variance estimates

calc_ate_estimatesR Documentation

Calculate the ATE and variance estimates

Description

Calculate the ATE and variance estimates

Usage

calc_ate_estimates(data, ate_var, y, p_adjust_n, v_fold = FALSE, naive = FALSE)

Arguments

data

Data frame that includes treatement/exposure

ate_var

Variable that the ATE is assigned to in data

y

Variable name in data for the raw outcome

p_adjust_n

Number repeated measures to adjust p-value

v_fold

TRUE/FALSE whether to calculate v-fold specific ATE estimates

naive

This is for a one step estimator so Psi is calculated without TMLE update

Details

Calculates the average treatment effect and variance estimates from the influence curve across folds

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.