dot-impute_outcome_type: Internal imputation function for the outcome type.

.impute_outcome_typeR Documentation

Internal imputation function for the outcome type.

Description

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.

Usage

.impute_outcome_type(
  data,
  outcome_column,
  class_levels,
  censoring_indicator,
  event_indicator,
  competing_risk_indicator
)

Arguments

data

Data set as loaded using the .load_data function.

outcome_column

Name of the outcome column in the data set.

class_levels

User-provided class levels for the outcome.

censoring_indicator

Name of censoring indicator.

event_indicator

Name of event indicator.

competing_risk_indicator

Name of competing risk indicator.

Value

The imputed outcome type.

Note

It is highly recommended that the user provides the outcome type.


familiar documentation built on Sept. 30, 2024, 9:18 a.m.