Learn R Programming

PheCAP (version 1.2.1)

phecap_predict_phenotype: Predict Phenotype

Description

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

Usage

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.