Compute predicted probability of having the phenotype for each patient in the dataset.

phecap_predict_phenotype(data, model)

Arguments

data

an object of class PhecapData, obtained by calling PhecapData(...).

model

an object of class PhecapModel, probably returned from phecap_train_phenotyping_model.

Value

A data.frame with two columns:

patient_index

patient identifier

,
prediction

predicted phenotype

.

See also

See PheCAP-package for code examples.