plotComb | R Documentation |
The plotComb
a function that generates plots from the
training model. The function takes argument model. The outputs of the
function are three different plots generated from the combination scores.
plotComb(model, status)
model |
a |
status |
a |
A data.frame
plots
Serra Ilayda Yerlitas, Serra Bersan Gengec, Necla Kochan, Gozde Erturk Zararsiz, Selcuk Korkmaz, Gokmen Zararsiz
# call data
data(laparotomy)
# define the function parameters
markers <- laparotomy[, -1]
status <- factor(laparotomy$group, levels = c("not_needed", "needed"))
event <- "needed"
score1 <- linComb(
markers = markers, status = status, event = event,
method = "scoring", resample = "none",
standardize = "none", direction = "<", cutoff.method = "Youden"
)
plotComb(score1, status)
score2 <- nonlinComb(
markers = markers, status = status, event = event,
method = "nsgam", resample = "cv", include.interact = FALSE, direction = "<",
standardize = "zScore", cutoff.method = "Youden"
)
plot.score2 <- plotComb(score2, status)
score3 <- mathComb(
markers = markers, status = status, event = event,
method = "distance", distance = "euclidean", direction = "auto",
standardize = "tScore", cutoff.method = "Youden"
)
plot.score3 <- plotComb(score3, status)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.