NRI2: Net reclassification improvement 2 no thresholds

Description Usage Arguments Details Value

View source: R/metrics.R

Description

This function calculates a modified net reclassification improvement (NRI) metric comparing two models at a range of predicting tresholds (simialr to library(Hmisc))

Usage

1
NRI2(plpModel1, plpModel2, minOutcomes = 5)

Arguments

plpModel1

The object returned by runPlp() containing the trained model or the output when implementing an existing model

plpModel2

The object returned by runPlp() containing the trained model or the output when implementing an existing model

minOutcomes

Must be this number of outcomes minimum for comparison

Details

Users need to input a trained model (the output of runPlp()) or the output of running an existing model

Value

A list containing the NRI value and z-value (can be used for statistical significance). A positive value suggests the first model is better than the second model. A negative values suggests the opposite.


OHDSI/PredictionComparison documentation built on July 14, 2020, 6:16 p.m.