summaryDS: Summary function of Dirac Spike

View source: R/summaryDS.R

summaryDSR Documentation

Summary function of Dirac Spike

Description

summaryDS is a generic function used to produce result summaries of the results of DS function.

Usage

summaryDS(object)

Arguments

object

a result of a call to DS

Value

  • Name of Gene: the component from object.

  • Number of SNPs: the component from object.

  • Name of SNPs: the component from object.

  • log10BF: the component from object.

  • lBFDR: the component from object.

  • theta: the component from object.

  • Significance based on CI: the component from object.

  • Significance based on median thresholding: the component from object.

Author(s)

Taban Baghfalaki.

References

Baghfalaki, T., Sugier, P. E., Truong, T., Pettitt, A. N., Mengersen, K., & Liquet, B. (2021). Bayesian meta analysis models for cross cancer genomic investigation of pleiotropic effects using group structure. Statistics in Medicine, 40(6), 1498-1518.

Examples

############################# Gene DNAJC1 ###############################################
data(DNAJC1)
Breast <- DNAJC1$Breast
Thyroid <- DNAJC1$Thyroid
genename <- "DNAJC1"
snpnames <- Breast$snp
Betah <- list(Breast$beta, Thyroid$beta)
Sigmah <- list(diag(Breast$se^2), diag(Thyroid$se^2))
K <- 2
m <- 14


RES <- DS(Betah, Sigmah,
  kappa0 = 0.5, sigma20 = 1,
  m = m, K = K, niter = 2000, burnin = 1000, nthin = 2, nchains = 1,
  a1 = 0.1, a2 = 0.1, d1 = 0.1, d2 = 0.1, snpnames, genename
)
summaryDS(RES)

tbaghfalaki/GCPBayes documentation built on March 18, 2024, 7:43 a.m.