extractNetBenefit: The net benefit for a model

Description Usage Arguments Details Value

View source: R/metrics.R

Description

This function calculates the net benefit for a model

Usage

1
extractNetBenefit(runPlp, type = NULL, modelId = NULL)

Arguments

runPlp

A object of class 'runPlp' returned by implementing runPlp() or the output when implementing an existing model

Details

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

Value

A data.frame containing the columns: pt, netbenefit, treatall and modelId. Pt is the probability treshold or a scaled risk score (if using an existing model)


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