Nothing
theta_dr <- function(task, sequential_regressions, density_ratios, fits_m, fits_r, shift, is_sdr) {
influence_function <- eif(density_ratios, sequential_regressions$shifted, sequential_regressions$natural)
if (is_sdr) {
theta <- weighted.mean(influence_function, task$weights)
} else {
theta <- weighted.mean(sequential_regressions$shifted[, 1], task$weights)
}
influence_function <- task$rescale(influence_function)
theta <- task$rescale(theta)
out <- list(
estimator = ifelse(is_sdr, "SDR", "TMLE"),
estimate = ife::ife(theta, influence_function, task$weights, as.character(task$id)),
shift = shift,
outcome_reg = task$rescale(sequential_regressions$shifted),
density_ratios = density_ratios,
fits_m = fits_m,
fits_r = fits_r,
outcome_type = task$outcome_type
)
class(out) <- "lmtp"
out
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.