decisionCurve.diff.pvalue: Comparing two decision curves and reporting P value

View source: R/DCA.R

decisionCurve.diff.pvalueR Documentation

Comparing two decision curves and reporting P value

Description

Comparing two decision curves and reporting P value

Usage

decisionCurve.diff.pvalue(
  outcome,
  pred1,
  pred2,
  boots = 100,
  xstart = 0.01,
  xstop = 0.99,
  step = 0.01,
  type = "treated",
  model.name = "Model"
)

Arguments

boots

100 Bootstrape to avoid overfitting

xstart

the starting point of the threshold probability, the default value is 0.01.

xstop

the end point of the threshold probability, the default value is 0.99

step

a numerical value specifying the incremental step of the threshold probability, the default value is 0.01

type

controls the type of net benefit to be computed. The allowed values correspond to the treated (“treated”), untreated (“untreated”) and overall (“overall”) patients, or to the ADAPT index (“adapt”). The default is the “treated”

model.name

Default Model

Examples

data(LIRI)

pred1 <- as.vector( unlist( LIRI[,c(3)] ) )
pred2 <- as.vector( unlist( LIRI[,c(2)] ) )
decisionCurve.diff.pvalue(LIRI$status, pred1, pred2)


ProfessionalFarmer/loonR documentation built on Oct. 9, 2024, 9:56 p.m.