phecap_validate_phenotyping_model {PheCAP} | R Documentation |
Apply the trained model to all patients in the validation dataset, and measure the prediction accuracy via ROC and AUC.
phecap_validate_phenotyping_model(data, model)
data |
an object of class |
model |
an object of class |
An object of class PhecapValidation
, with components
method |
the method used for model training |
train_roc |
ROC on training dataset |
train_auc |
AUC on training dataset |
split_roc |
average ROC on random splits of training dataset |
split_auc |
average AUC on random splits of training dataset |
valid_roc |
ROC on validation dataset |
valid_auc |
AUC on validation dataset |
See PheCAP-package
for code examples.