summary_stat: Summary statistics for main adapt4pv package functions

View source: R/summary_stat.R

summary_statR Documentation

Summary statistics for main adapt4pv package functions

Description

Return the Sensitivity and the False Discovery Rate of an approach implemeted by the main functions of adapt4pv package.

Usage

summary_stat(object, true_pos, q = 10)

Arguments

object

An object of class "log.lasso", "cisl", "adaptive" and "*", "ps","**" where "*" is either "adjust", "iptw" or "mw" and "**" is either "bic", "hdps" or "xgb".

true_pos

Character vector, names of the true positives controls

q

Quantile value for variable selection with an object of class "cisl". Possible values are 5, 10, 15, 20. Default is 10

Value

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.

Author(s)

Emeline Courtois
Maintainer: Emeline Courtois emeline.courtois@inserm.fr

Examples


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



adapt4pv documentation built on May 31, 2023, 6:08 p.m.