plot.DNPROCreg: Default DNPROCreg plotting

View source: R/plot.DNPROCreg.R

plot.DNPROCregR Documentation

Default DNPROCreg plotting

Description

Takes a fitted DNPROCreg object produced by DNPROCreg() and plots the covariate-specific ROC curve and associated AUC.

Usage

## S3 method for class 'DNPROCreg'
plot(x, ask = TRUE, ...)

Arguments

x

an object of class DNPROCreg as produced by DNPROCreg()

ask

a logical value. If TRUE, the default, the user is asked for confirmation, before a new figure is drawn

...

further arguments passed to or from other methods.

Author(s)

Maria Xose Rodriguez-Alvarez and Javier Roca-Pardinas

See Also

See Also DNPROCreg, summary.DNPROCreg.

Examples

data(endosim)
# Fit a model including the interaction between age and gender.
m0 <- DNPROCreg(marker = "bmi", formula.h = "~ gender + s(age) + s(age, by = gender)", 
				formula.ROC = "~ gender + s(age) + s(age, by = gender)", 
				group = "idf_status", 
				tag.healthy = 0, 
				data = endosim, 
				control = list(card.P=50, kbin=30, step.p=0.02))
summary(m0)				
plot(m0)

npROCRegression documentation built on Aug. 31, 2023, 5:15 p.m.