R/ctwas_summarize_parameters.R
compute_enrichment_test.Rd
Computes enrichment (log-scale), standard error and p-value
a vector of prior inclusion probabilities for different groups.
a vector of number of variables in different groups.
Method to test enrichment, "G": G-test, "fisher": Fisher's exact test, "z": p-value computed from z-score of enrichment.
indicates the alternative hypothesis and
must be one of "greater", "two.sided", or "less".
Only used when enrichment_test
is "fisher" or "z".
If TRUE, return the original test result.
Estimated enrichment, S.E. and p-value from G-test or Fisher's exact test.