Univariate Heterogeneous Treatment Effect Modifier Estimator
unihtee.Rdunihtee() estimates treatment effect modifier variable
importance parameters (TEM-VIPs). Both absolute and relative TEM-VIPs can
be estimated using one-step or targeted maximum likelihood estimators.
Usage
unihtee(
data,
confounders,
modifiers,
exposure,
outcome,
censoring = NULL,
time_cutoff = NULL,
outcome_type = c("continuous", "binary", "time-to-event"),
effect = c("absolute", "relative"),
estimator = c("tmle", "onestep"),
cross_fit = FALSE,
cross_fit_folds = 5,
cond_outcome_estimator = sl3::Lrnr_glm_fast$new(),
prop_score_estimator = sl3::Lrnr_glm_fast$new(),
prop_score_values = NULL,
failure_hazard_estimator = sl3::Lrnr_xgboost$new(),
censoring_hazard_estimator = sl3::Lrnr_xgboost$new(),
parallel = FALSE
)Arguments
- data
A
data.tablecontaining the observed data.- confounders
A
charactervector of column names corresponding to baseline covariates.- modifiers
A
charactervector of columns names corresponding to the suspected effect modifiers. This vector must be a subset ofconfounders.- exposure
A
charactercorresponding to the exposure variable.- outcome
A
charactercorresponding to the outcome variable.- censoring
A
characterindicating the right censoring indicator variable. Only used with time-to-event outcomes. Defaults toNULL.- time_cutoff
A
numericrepresenting the time point at which to evaluate the time-to-event parameter. Only used with time-to-event outcomes. Defaults toNULL.- outcome_type
A
characterindicating the outcome type."continuous","binary"and"time-to-event"are currently supported.- effect
A
characterindicating the type of treatment effect modifier variable importance parameter. Currently supports"absolute"and"relative".- estimator
A
characterset to either"tmle"or"onestep". The former results inunihtee()to use a targeted maximum likelihood estimators to estimate the desired TEM-VIP, while the latter uses a one step estimator.- cross_fit
A
logicaldetermining whether cross-fitting should be used. Defaults toFALSE.- cross_fit_folds
A
numericstating the number of folds to use in the cross-fitting procedure. Defaults to 5.- cond_outcome_estimator
A
Stack, or other learner class (inheriting fromLrnr_base), containing a set of learners from sl3 to estimate the conditional outcome. Defaults to a generalized linear model with one- and two- way interactions among allconfoundersandexposurevariables. Only used with continuous and binary outcomes.- prop_score_estimator
A
Stack, or other learner class (inheriting fromLrnr_base), containing a set of learners from sl3 to estimate the propensity score. Defaults to a generalized linear model with one- and two- way interactions among allconfoundersvariables.- prop_score_values
An optional
charactercorresponding to the (known) propensity score values for each observation indata. Defaults toNULL.- failure_hazard_estimator
A
Stack, or other learner class (inheriting fromLrnr_base), containing a set of learners from sl3 to estimate the conditional failure hazard function. Defaults to an XGBoost learner withconfoundersandexposurevariables as covariates. Only used with time-to-event outcomes.- censoring_hazard_estimator
A
Stack, or other learner class (inheriting fromLrnr_base), containing a set of learners from sl3 to estimate the conditional censoring hazard function. Defaults to an XGBoost learner withconfoundersandexposurevariables as covariates. Only used with time-to-event outcomes.- parallel
A
logicalstating iforigami's built-in parallelized cross-validation routines should be used whencross_fit = TRUE. Thefuturesuite is used. Defaults toFALSE.
Value
A list containing:
temvip_inference_tbl: Adata.tablecontaining the effect estimates and (adjusted) p-values of themodifiers. The suspected treatment effect modifiers ordered according to ascending p-values.ace_estimate: Anumericproviding the estimate of the average causal effect associated with the specified effect and outcome types.data: Thedata.tablecontaining the observed data used to estimate the TEM-VIPs, containing only the confounders, modifiers, exposure, outcome, censoring (if provided), and propensity score (if provided) variables.