Predict the risk of the outcome using the input plpModel for the input plpData
predictPlp(plpModel, population, plpData, index = NULL)
An object of type plpModel
- a patient level prediction model
The population created using createStudyPopulation() who will have their risks predicted
An object of type plpData
- the patient level prediction
data extracted from the CDM.
A data frame containing rowId: a vector of rowids and index: a vector of doubles the same length as the rowIds. If used, only the rowIds with a negative index value are used to calculate the prediction.
A dataframe containing the prediction for each person in the population with an attribute metaData containing prediction details.
The function applied the trained model on the plpData to make predictions