powered by
Predicts probability of observing n exacerbations in the next year
predictCountProb(patientResults, n = 10, shortened = TRUE)
a matrix of probabilities with the number of exacerbations as rows and number of severe exacerbations as columns
patient results vector, produced by accept.
how many exacerbations
boolean: Shortened results groups into 0, 1, 2, and 3 or more exacerbations
results <- accept2(samplePatients[1,]) predictCountProb (results)
Run the code above in your browser using DataLab