The function CI.classNRI calculates the NRI statistics for reclassification of data already in classes with confidence intervals. Uses statistics.classNRI.
CI.classNRI(
c1,
c2,
y,
s1 = NULL,
s2 = NULL,
conf.level = 0.95,
n.boot = 1000,
dp = 3
)A list with the following elements:
Some overall meta data - Confidence Interval, number of bootstraps, s1, s2
Point estimates of the statistical metrics.
Point estimates of the statistical metrics for each bootstrapped sample.
Point estimates with confidence intervals of the statistical metrics (e.g. Total, Events, Non-events, Prevalence, NRI, IDI, confusion matrices).
A matrix of metrics
Risk classes of the baseline model (ordinal)
Risk classes of new model
Binary of outcome of interest. Must be 0 or 1.
The savings or benefit when am event is reclassified to a higher group by the new model (positive numeric)
The benefit when a non-event is reclassified to a lower group (positive numeric)
The confidence interval expressed as a fraction of 1 (ie 0.95 is the 95% confidence interval )
The number of "bootstraps" to use. Performance slows down with more bootstraps. For trialling result, use a low number (eg 2), for accuracy use a large number (eg 2000)
The number of decimal places to display