check_arg_test_phevis {PheVis}R Documentation

check_arg_test_phevis

Description

Function to check arguments passed to test_phevis()

Usage

check_arg_test_phevis(
  train_param,
  df_test,
  surparam,
  model,
  START_DATE,
  PATIENT_NUM,
  ENCOUNTER_NUM
)

Arguments

train_param

Parameters for the model training (variables used, main ICD and CUIS, half_life, gold standard, omega). Usually obtained from train_phevis() function.

df_test

The dataframe on which to make the prediction.

surparam

The parameters used to compute the surrogate. Usually obtained by train_phevis() function.

model

The random intercept logistic regression. Usually obtained by train_phevis() function.

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.

Value

No return value, stop the code execution if one condition is not met.


[Package PheVis version 1.0.4 Index]