This function allows for imputation of the most plausible outcome type.
This imputation is only done for trivial cases, where there is little doubt.
As a consequence count
and continuous
outcome types are never imputed.
.impute_outcome_type(
data,
outcome_column,
class_levels,
censoring_indicator,
event_indicator,
competing_risk_indicator
)
The imputed outcome type.
Data set as loaded using the .load_data
function.
Name of the outcome column in the data set.
User-provided class levels for the outcome.
Name of censoring indicator.
Name of event indicator.
Name of competing risk indicator.