View source: R/IPSSMannotate.R
| IPSSMannotate | R Documentation |
Consolidates the IPSS-M results to create single IPSSM score and IPSSM category columns. If the maximal range of IPSS-M risk score (worst-best) is below the allowed limit, then the IPSS-M results under the mean scenario are reported. Of course if no missing data, the IPSS-M values are fully certains.
IPSSMannotate(patientResult, range.max = 1)
patientResult |
a patient result |
range.max |
threshold for the allowed maximal range in IPSS-M risk (worst - best) to confidently report the mean scenario as the main result. Default 1. |
An annotated patient data.frame, same number of rows/patients as in patientResult, with additonal columns labelled IPSSMscore, IPSSMcat, and Comment.
dd <- read.csv(system.file("extdata", "IPSSMexample.csv", package = "ipssm"), header = TRUE)
dd.process <- IPSSMprocess(patientInput = dd)
dd.res <- IPSSMmain(patientProcess = dd.process)
dd.annot <- IPSSMannotate(patientResult = dd.res)
print(dd.annot[, c("ID", "IPSSMscore", "IPSSMcat", "Comment")])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.