Summarizes estimated parameters

summarize_param(
  param,
  gwas_n,
  enrichment_test = c("fisher", "G", "z"),
  alternative = c("greater", "two.sided", "less"),
  include_test_result = FALSE
)

Arguments

param

a list of parameter estimation result from est_param

gwas_n

the sample size of the GWAS summary statistics.

enrichment_test

Method to test enrichment, "G": G-test, "fisher": Fisher's exact test, "z": p-value computed from z-score of enrichment.

alternative

indicates the alternative hypothesis and must be one of "greater", "two.sided", or "less". Only used when enrichment_test is "fisher" or "z".

include_test_result

If TRUE, return the original test result.

Value

a list of summarized parameters