Function to check arguments passed to train_phevis()
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
)No return value, stop the code execution if one condition is not met.
Duration of cumulation. For a chronic disease you might chose Inf, for acute disease you might chose the duration of the disease.
data.frame containing all the variables.
Column name of the time column. The time column should be numeric
Column name of the patient id column.
Column name of the encounter id column.
Explanatory variables used for the prediction, including the main variables.
Character vector of the column names of the main ICD codes.
Character vector of the column names of the main CUIs.
should pseudo-labellisation with random forest be used (default is true)
percentage of noise introduced during the noising step (default is 0.3)
A boolean. If TRUE, SAFE selection is done, else it is not (default is TRUE)
Constant for the extrema population definition (default is 2)
Character string corresponding to the name of the gold-standard variable (default is null for which a vector of 0 will be taken).