summary_stat | R Documentation |
Return the Sensitivity and the False Discovery Rate of an approach implemeted by the main functions of adapt4pv package.
summary_stat(object, true_pos, q = 10)
object |
An object of class |
true_pos |
Character vector, names of the true positives controls |
q |
Quantile value for variable selection with
an object of class |
A data frame wich details for the signal detection method
implemented in object
: its number of generated signals, its
sensitivity and its false discovery rate.
Emeline Courtois
Maintainer: Emeline Courtois
emeline.courtois@inserm.fr
set.seed(15)
drugs <- matrix(rbinom(100*20, 1, 0.2), nrow = 100, ncol = 20)
colnames(drugs) <- paste0("drugs",1:ncol(drugs))
ae <- rbinom(100, 1, 0.3)
lcv <- lasso_cv(x = drugs, y = ae, nfolds = 3)
summary_stat(object = lcv, true_pos = colnames(drugs)[1:10])
# the data are not simulated in such a way that there are true positives
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.