implied_prior: Calculate implied priors for two independent 'JAM' models

Description Usage Arguments Value

Description

For internal use by cojam. Uses combinatorics and each JAM model's beta-binomial prior to calculate the prior probabilities of each colocalisation hypothesis, given that the two traits are independent. Used by cojam to calculate the Bayes Factor for for H4 versus H3 (by factoring out this unrealistic implied prior).

Usage

1
implied_prior(jam_res_1, jam_res_2)

Arguments

jam_res_1

A R2BGLiMS_Results-class object, from running JAM for trait 1.

jam_res_2

A R2BGLiMS_Results-class object, from running JAM for trait 2.

Value

Named vector of implied prior probabilities for H0 U H1 U H2, H3 and H4.


simisc/cojam documentation built on Dec. 31, 2020, 7:26 a.m.