onestep TMLE of average density parameter
onestep TMLE of average density parameter
R6Class
object.
Object of R6Class
with methods
new(x, epsilon_step = NULL, verbose = NULL)
specify data; define targeting step size
fit_density(bin_width = .1, lambda_grid)
use `cvDensityHAL` to fit density. bin_width for pre-binning of continuous x; lambda_grid for grid search of lambda in HAL
x
random sample from distribution
p_hat
(empiricalDensity
) containing density estimates
Psi
paramter value
EIC
vector of EIC
epsilon_step
step size for one-step targeting
CI
(numeric vector) length 2; lower + upper CI
longDataOut
(longiData
) for transforming x into longitudinal format dataframe
HAL_tuned
(hal9001
) generated by cvDensityHAL
class.
new()
avgDensityTMLE$new(x, epsilon_step = NULL, verbose = NULL)
fit_density()
avgDensityTMLE$fit_density( bin_width = 0.1, lambda_grid = NULL, M = NULL, n_fold = 3, ... )
fit_density_pen_likeli()
avgDensityTMLE$fit_density_pen_likeli( bin_width = 0.1, lambda_grid = NULL, lambda_min_ratio = NULL, n_fold = 3, ... )
compute_Psi()
avgDensityTMLE$compute_Psi(p_hat, to_return = FALSE)
compute_EIC()
avgDensityTMLE$compute_EIC(p_hat, Psi, to_return = FALSE)
update_once()
avgDensityTMLE$update_once()
target_onestep()
avgDensityTMLE$target_onestep(verbose = FALSE)
inference()
avgDensityTMLE$inference()
compute_min_phi_ratio()
avgDensityTMLE$compute_min_phi_ratio()
clone()
The objects of this class are cloneable with this method.
avgDensityTMLE$clone(deep = FALSE)
deep
Whether to make a deep clone.
# avgDensityTMLE$new()