Learn R Programming

familiar (version 1.5.0)

.impute_outcome_type: 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
)

Value

The imputed outcome type.

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.