Title: | Targeted Learning of the Causal Effects of Stochastic Interventions |
---|---|
Description: | Targeted maximum likelihood estimation (TMLE) of population-level causal effects under stochastic treatment regimes and related nonparametric variable importance analyses. Tools are provided for TML estimation of the counterfactual mean under a stochastic intervention characterized as a modified treatment policy, such as treatment policies that shift the natural value of the exposure. The causal parameter and estimation were described in Díaz and van der Laan (2013) <doi:10.1111/j.1541-0420.2011.01685.x> and an improved estimation approach was given by Díaz and van der Laan (2018) <doi:10.1007/978-3-319-65304-4_14>. |
Authors: | Nima Hejazi [aut, cre, cph] , Jeremy Coyle [aut] , Mark van der Laan [aut, ths] |
Maintainer: | Nima Hejazi <[email protected]> |
License: | GPL-3 |
Version: | 0.2.2 |
Built: | 2024-10-31 03:32:49 UTC |
Source: | https://github.com/tlverse/tmle3shift |
Shifts a likelihood factor according to a shift_function
and a given
magnitude of the desired shift (shift_delta
). In effect,
get_likelihood(tmle_task)
from tmle3
will instead be the
likelihood from the original_lf
, but for a shifted value
shift_function
.
R6Class
object.
LF_base
object
define_lf(LF_shift, name, type = "density", original_lf,
shift_function, ...)
name
character, the name of the factor. Should match a
node name in the specification in tmle3_Task$npsem
.
original_lf
LF_base
object, the likelihood
factor to shift.
shift_function
function
, defines the shift.
shift_inverse
function
, the inverse of a given
shift_function
.
shift_delta
numeric
, specification of the magnitude
of the desired shift (on the level of the treatment).
max_shifted_ratio
A numeric
value indicating the
maximum tolerance for the ratio of the counterfactual and observed
intervention densities. In particular, the shifted value of the
intervention is assigned to a given observational unit when the
ratio of the counterfactual intervention density to the observed
intervention density is below this value.
...
Not currently used.
original_lf
LF_base
object, the likelihood
factor to shift.
shift_function
function
, defines the shift.
shift_inverse
function
, the inverse of a given
shift_function
.
shift_delta
numeric
, specification of the magnitude
of the desired shift (on the level of the treatment).
max_shifted_ratio
A numeric
value indicating the
maximum tolerance for the ratio of the counterfactual and observed
intervention densities. In particular, the shifted value of the
intervention is assigned to a given observational unit when the
ratio of the counterfactual intervention density to the observed
intervention density is below this value.
...
Additional arguments passed to the base class.
Díaz, Iván and van der Laan, Mark (2018). In Targeted Learning in Data Science: Causal Inference for Complex Longitudinal Studies, 167–80. Springer Science & Business Media.
Díaz, Iván and van der Laan, Mark J (2012). Biometrics 68 (2). Wiley Online Library: 541–49.
Parameter definition for targeting the parameters of a linear working marginal structural model (MSM): EY = beta0 + beta1 * delta, in order to summarize the variable importance results of a grid of shift interventions.
R6Class
object.
Param_base
object
define_param(Param_MSM_linear, observed_likelihood,
intervention_list, ..., outcome_node)
observed_likelihood
A Likelihood
corresponding to the observed likelihood.
intervention_list
A list of objects inheriting from
LF_base
, representing the intervention.
...
Not currently used.
outcome_node
character, the name of the node that should be treated as the outcome.
cf_likelihood
the counterfactual likelihood for this treatment.
intervention_list
A list of objects inheriting from
LF_base
, representing the intervention.
Additive Shifts of Continuous-Valued Interventions Without Bounds
shift_additive(tmle_task, delta = 0, ...) shift_additive_inv(tmle_task, delta = 0, ...)
shift_additive(tmle_task, delta = 0, ...) shift_additive_inv(tmle_task, delta = 0, ...)
tmle_task |
A |
delta |
A |
... |
Additional arguments (currently unused). |
Other shifting_interventions:
shift_additive_bounded()
Other shifting_interventions:
shift_additive_bounded()
O = (W, A, Y) W = Covariates A = Treatment (binary or categorical) Y = Outcome (binary or bounded continuous)
tmle_shift( shift_fxn = shift_additive, shift_fxn_inv = shift_additive_inv, shift_val = 1, max_shifted_ratio = 5, ... )
tmle_shift( shift_fxn = shift_additive, shift_fxn_inv = shift_additive_inv, shift_val = 1, max_shifted_ratio = 5, ... )
shift_fxn |
A |
shift_fxn_inv |
A |
shift_val |
A |
max_shifted_ratio |
A |
... |
Additional arguments (currently unused). |
O = (W, A, Y) W = Covariates A = Treatment (binary or categorical) Y = Outcome (binary or bounded continuous)
tmle_vimshift_delta( shift_fxn = shift_additive, shift_fxn_inv = shift_additive_inv, shift_grid = seq(-1, 1, by = 0.5), max_shifted_ratio = 5, weighting = c("identity", "variance"), ... )
tmle_vimshift_delta( shift_fxn = shift_additive, shift_fxn_inv = shift_additive_inv, shift_grid = seq(-1, 1, by = 0.5), max_shifted_ratio = 5, weighting = c("identity", "variance"), ... )
shift_fxn |
A |
shift_fxn_inv |
A |
shift_grid |
A |
max_shifted_ratio |
A |
weighting |
A |
... |
Additional arguments, passed to shift functions. |
O = (W, A, Y) W = Covariates A = Treatment (binary or categorical) Y = Outcome (binary or bounded continuous)
tmle_vimshift_msm( shift_fxn = shift_additive, shift_fxn_inv = shift_additive_inv, shift_grid = seq(-1, 1, by = 0.5), max_shifted_ratio = 5, weighting = c("identity", "variance"), ... )
tmle_vimshift_msm( shift_fxn = shift_additive, shift_fxn_inv = shift_additive_inv, shift_grid = seq(-1, 1, by = 0.5), max_shifted_ratio = 5, weighting = c("identity", "variance"), ... )
shift_fxn |
A |
shift_fxn_inv |
A |
shift_grid |
A |
max_shifted_ratio |
A |
weighting |
A |
... |
Additional arguments, passed to shift functions. |
Defines a TML Estimator for the Outcome under a Shifted Treatment
Defines a TML Estimator for Variable Importance for Continuous Interventions
Defines a TML Estimator for Variable Importance for Continuous Interventions
Test for a trend in the effect of shift interventions via working MSM
trend_msm( tmle_fit_estimates, delta_grid, level = 0.95, weighting = c("identity", "variance") )
trend_msm( tmle_fit_estimates, delta_grid, level = 0.95, weighting = c("identity", "variance") )
tmle_fit_estimates |
A |
delta_grid |
A |
level |
The nominal coverage probability of the confidence interval. |
weighting |
A |