Univariate Heterogeneous Treatment Effect Modifier Estimator
unihtee.Rd
unihtee()
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.table
containing the observed data.- confounders
A
character
vector of column names corresponding to baseline covariates.- modifiers
A
character
vector of columns names corresponding to the suspected effect modifiers. This vector must be a subset ofconfounders
.- exposure
A
character
corresponding to the exposure variable.- outcome
A
character
corresponding to the outcome variable.- censoring
A
character
indicating the right censoring indicator variable. Only used with time-to-event outcomes. Defaults toNULL
.- time_cutoff
A
numeric
representing the time point at which to evaluate the time-to-event parameter. Only used with time-to-event outcomes. Defaults toNULL
.- outcome_type
A
character
indicating the outcome type."continuous"
,"binary"
and"time-to-event"
are currently supported.- effect
A
character
indicating the type of treatment effect modifier variable importance parameter. Currently supports"absolute"
and"relative"
.- estimator
A
character
set 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
logical
determining whether cross-fitting should be used. Defaults toFALSE
.- cross_fit_folds
A
numeric
stating 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 allconfounders
andexposure
variables. 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 allconfounders
variables.- prop_score_values
An optional
character
corresponding 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 withconfounders
andexposure
variables 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 withconfounders
andexposure
variables as covariates. Only used with time-to-event outcomes.- parallel
A
logical
stating iforigami
's built-in parallelized cross-validation routines should be used whencross_fit = TRUE
. Thefuture
suite is used. Defaults toFALSE
.