CI.classNRI | R Documentation |
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
)
c1 |
Risk classes of the baseline model (ordinal) |
c2 |
Risk classes of new model |
y |
Binary of outcome of interest. Must be 0 or 1. |
s1 |
The savings or benefit when am event is reclassified to a higher group by the new model (positive numeric) |
s2 |
The benefit when a non-event is reclassified to a lower group (positive numeric) |
conf.level |
The confidence interval expressed as a fraction of 1 (ie 0.95 is the 95% confidence interval ) |
n.boot |
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) |
dp |
The number of decimal places to display |
A list with four items:
1. meta_data Some overall meta data - Confidence Interval, number of bootstraps, s1, s2
2. Metrics Point estimates of the statistical metrics (see list below)
3. Each_bootstrap_metrics Point estimates of the statistical metrics for each bootstrapped sample (see list below)
4. Summary Metrics Point estimates with confidence intervals of the statistical metrics. See following list:)
Total (n) Total number of subjects
Events (n) Number of subjects with the event (outcome) of interest
Non-events (n) Number of subjects without the event (outcome) of interest
Prevalence The prevalence of the event
NRI events The NRI with confidence interval for those with the event.
NRI non-events The NRI with confidence interval for those without the event.
wNRI-events The weighted NRI for those with the event
wNRI-nonevents The weighted NRI for those without the event
Confusion matrix events A confusion matric (table) showing the relationship of the numbers classified into each class with the baseline model compared to those in each class with the new model
Confusion matrix non-events A confusion matric (table) showing the relationship of the numbers classified into each class with the baseline model compared to those in each class with the new model
A matrix of metrics
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.