compute_hypergeom_on_list {emcAdr} | R Documentation |
Function used to compute the Hypergeometric score on a list of cocktails
Description
Function used to compute the Hypergeometric score on a list of cocktails
Usage
compute_hypergeom_on_list(cocktails, ATCtree, observations, num_thread = 1L)
Arguments
cocktails |
: A list containing cocktails in the form of vector of integers (ATC index) |
ATCtree |
: ATC tree with upper bound of the DFS (without the root) |
observations |
: observation of the AE based on the medications of each patients (a DataFrame containing the medication on the first column and the ADR (boolean) on the second) on which we want to compute the risk distribution |
num_thread |
: Number of thread to run in parallel if openMP is available, 1 by default |
Value
Hypergeometric score among "cocktails" parameters
Examples
data("ATC_Tree_UpperBound_2024")
data("FAERS_myopathy")
cocktails = list(c(561, 904),
c(1902, 4585))
Hypergeom_of_cocktails = compute_hypergeom_on_list(cocktails = cocktails,
ATCtree = ATC_Tree_UpperBound_2024,
observations = FAERS_myopathy)
[Package emcAdr version 1.2 Index]