statistics.classNRI | R Documentation |
The function statistics.classNRI calculates the NRI metrics for reclassification of data already in classes. For use by CI.classNRI.
statistics.classNRI(c1, c2, y, s1 = NULL, s2 = NULL)
c1 |
Risk class of Reference model (ordinal factor). |
c2 |
Risk class of New model (ordinal factor) |
y |
Binary of outcome of interest. Must be 0 or 1. |
s1 |
The savings or benefit when an event is reclassified to a higher group by the new model. i.e instead of counting as 1 an event classified to a higher group, it is counted as s1. |
s2 |
The benefit when a non-event is reclassified to a lower group. i.e instead of counting as 1 an event classified to a lower group, it is counted as s2. |
A matrix of metrics for use within CI.classNRI
## Not run:
data(data_class)
y <- data_class$outcome
c1 <- data_class$base_class
c2 <- data_class$new_class
#e.g.
output<-statistics.classNRI(c1, c2, y)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.