check_arg_train_phevis {PheVis} | R Documentation |
check_arg_train_phevis
Description
Function to check arguments passed to train_phevis()
Usage
check_arg_train_phevis(
half_life,
df,
START_DATE,
PATIENT_NUM,
ENCOUNTER_NUM,
var_vec,
main_icd,
main_cui,
rf,
p.noise,
bool_SAFE,
omega,
GS
)
Arguments
half_life |
Duration of cumulation. For a chronic disease you might chose Inf, for acute disease you might chose the duration of the disease. |
df |
|
START_DATE |
Column name of the time column. The time column should be numeric |
PATIENT_NUM |
Column name of the patient id column. |
ENCOUNTER_NUM |
Column name of the encounter id column. |
var_vec |
Explanatory variables used for the prediction, including the main variables. |
main_icd |
Character vector of the column names of the main ICD codes. |
main_cui |
Character vector of the column names of the main CUIs. |
rf |
should pseudo-labellisation with random forest be used (default is true) |
p.noise |
percentage of noise introduced during the noising step (default is 0.3) |
bool_SAFE |
A boolean. If TRUE, SAFE selection is done, else it is not (default is TRUE) |
omega |
Constant for the extrema population definition (default is 2) |
GS |
Character string corresponding to the name of the gold-standard variable (default is null for which a vector of 0 will be taken). |
Value
No return value, stop the code execution if one condition is not met.