Description Usage Arguments Value
View source: R/tmle_SDR_iTMLE.R
Interventions on up to 3 nodes are allowed: CENS
, TRT
and MONITOR
.
Adjustment will be based on the inverse of the propensity score fits for the observed likelihood (g0.C, g0.A, g0.N),
multiplied by the indicator of not being censored and the probability of each intervention in intervened_TRT
and intervened_MONITOR
.
Requires column name(s) that specify the counterfactual node values or the counterfactual probabilities of each node being 1 (for stochastic interventions).
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | fit_iTMLE(
OData,
tvals,
Qforms,
intervened_TRT = NULL,
intervened_MONITOR = NULL,
rule_name = paste0(c(intervened_TRT, intervened_MONITOR), collapse = ""),
models = NULL,
fit_method = stremrOptions("fit_method"),
fold_column = stremrOptions("fold_column"),
stratifyQ_by_rule = FALSE,
stratify_by_last = TRUE,
useonly_t_TRT = NULL,
useonly_t_MONITOR = NULL,
CVTMLE = FALSE,
trunc_weights = 10^6,
weights = NULL,
parallel = FALSE,
return_fW = FALSE,
use_DR_transform = FALSE,
stabilize = FALSE,
reg_Q = NULL,
SDR_model = NULL,
verbose = getOption("stremr.verbose"),
...
)
|
OData |
Input data object created by |
tvals |
Vector of time-points in the data for which the survival function (and risk) should be estimated |
Qforms |
Regression formulas, one formula per Q. Only main-terms are allowed. |
intervened_TRT |
Column name in the input data with the probabilities (or indicators) of counterfactual treatment nodes being equal to 1 at each time point.
Leave the argument unspecified ( |
intervened_MONITOR |
Column name in the input data with probabilities (or indicators) of counterfactual monitoring nodes being equal to 1 at each time point.
Leave the argument unspecified ( |
rule_name |
Optional name for the treatment/monitoring regimen. |
models |
Optional parameters specifying the models for fitting the iterative (sequential) G-Computation formula.
Must be an object of class |
fit_method |
Model selection approach. Can be either |
fold_column |
The column name in the input data (ordered factor) that contains the fold IDs to be used as part of the validation sample.
Use the provided function |
stratifyQ_by_rule |
Set to |
stratify_by_last |
Only used when |
useonly_t_TRT |
Use for intervening only on some subset of observation and time-specific treatment nodes.
Should be a character string with a logical expression that defines the subset of intervention observations.
For example, using |
useonly_t_MONITOR |
Same as |
CVTMLE |
Set to |
trunc_weights |
Specify the numeric weight truncation value. All final weights exceeding the value in |
weights |
Optional |
parallel |
Set to |
return_fW |
When |
use_DR_transform |
Apply DR transform estimator instead of the iTMLE. |
stabilize |
Only applies when |
reg_Q |
(ADVANCED USE ONLY) Directly specify the Q regressions, separately for each time-point. |
SDR_model |
The xgboost parameter settings for iTMLE non-parametric regression targeting. If missing/NULL the default parameter settings will be used. |
verbose |
Set to |
... |
When |
An output list containing the data.table
with survival estimates over time saved as "estimates"
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.