IPSSMannotate: Annotate IPSS-M result

View source: R/IPSSMannotate.R

IPSSMannotateR Documentation

Annotate IPSS-M result

Description

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.

Usage

IPSSMannotate(patientResult, range.max = 1)

Arguments

patientResult

a patient result data.frame, as the output of IPSSMmain function.

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.

Value

An annotated patient data.frame, same number of rows/patients as in patientResult, with additonal columns labelled IPSSMscore, IPSSMcat, and Comment.

Examples

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")])


papaemmelab/ipssm documentation built on Feb. 8, 2023, 3:09 p.m.