View source: R/get_functions.R
get_log10bf | R Documentation |
Return the Bayes Factor for each effect
get_log10bf(m)
m |
the mash result (from joint or 1by1 analysis); must have been computed using usepointmass=TRUE |
if m was fitted using usepointmass=TRUE then returns a vector of the log10(bf) values for each effect. That is, the jth element lbf[j] is log10(Pr(Bj | g=ghat-nonnull)/Pr(Bj | g = 0)) where ghat-nonnull is the non-null part of ghat. Otherwise returns NULL.
simdata = simple_sims(50,5,1)
data = mash_set_data(simdata$Bhat, simdata$Shat)
m = mash(data, cov_canonical(data))
get_log10bf(m)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.