helper_minmax | R Documentation |
The helper_minmax
function estimates optimized value of
given biomarkers for the minmax method.
helper_minmax(lambda, neg.set, pos.set)
lambda |
a |
neg.set |
a |
pos.set |
a |
A numeric
value for the estimated optimized value
Serra Ilayda Yerlitas, Serra Bersan Gengec, Necla Kochan, Gozde Erturk Zararsiz, Selcuk Korkmaz, Gokmen Zararsiz
# call data
data(laparotomy)
# define the function parameters
markers <- cbind(laparotomy$ddimer, laparotomy$log_leukocyte)
status <- factor(laparotomy$group, levels = c("not_needed", "needed"))
neg.set <- markers[status == levels(status)[1], ]
pos.set <- markers[status == levels(status)[2], ]
lambda <- 0.5
stat <- helper_minmax(lambda, neg.set = neg.set, pos.set = pos.set)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.