paauccontrol | R Documentation |
Used to set various parameters controlling the estimation of the partial area under the covariate-adjusted ROC curve (pAAUC).
paauccontrol(compute = FALSE, value = 1)
compute |
Logical value. If TRUE the partial area under the covariate-adjusted ROC curve (pAAUC) is estimated. |
value |
Numeric value. Pre-specified maximum false positive fraction (FPF) at which to calculate the pAAUC. |
The value returned by this function is used as a control argument of the AROC.bnp
and AROC.bsp
functions.
a list with components for each of the possible arguments.
Inacio de Carvalho, V., and Rodriguez-Alvarez, M. X. (2018). Bayesian nonparametric inference for the covariate-adjusted ROC curve. Technical report.
AROC.bnp
and AROC.bsp
library(AROC) data(psa) # Select the last measurement newpsa <- psa[!duplicated(psa$id, fromLast = TRUE),] # Log-transform the biomarker newpsa$l_marker1 <- log(newpsa$marker1) m0 <- AROC.bnp(formula.healthy = l_marker1 ~ f(age, K = 0), group = "status", tag.healthy = 0, data = newpsa, scale = TRUE, p = seq(0,1,l=101), paauc = list(compute = TRUE, value = 0.3), compute.lpml = TRUE, compute.WAIC = TRUE, a = 2, b = 0.5, L = 10, nsim = 5000, nburn = 1000) summary(m0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.