View source: R/plot.DNPROCreg.R
plot.DNPROCreg | R Documentation |
Takes a fitted DNPROCreg
object produced by DNPROCreg()
and plots the covariate-specific ROC curve and associated AUC.
## S3 method for class 'DNPROCreg'
plot(x, ask = TRUE, ...)
x |
an object of class |
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. |
Maria Xose Rodriguez-Alvarez and Javier Roca-Pardinas
See Also DNPROCreg
, summary.DNPROCreg
.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.