Function to check arguments passed to test_phevis()
check_arg_test_phevis(
train_param,
df_test,
surparam,
model,
START_DATE,
PATIENT_NUM,
ENCOUNTER_NUM
)No return value, stop the code execution if one condition is not met.
Parameters for the model training (variables used, main ICD and CUIS, half_life, gold standard, omega). Usually obtained from train_phevis() function.
The dataframe on which to make the prediction.
The parameters used to compute the surrogate. Usually obtained by train_phevis() function.
The random intercept logistic regression. Usually obtained by train_phevis() function.
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.