Calculate approximate Bayes' factor (ABF)

calcABF(mod, mbeta, SSy, Sxy, Vy, N)

Arguments

mod

joint SNP model with snps separated by "%" e.g. "snp1%snp2"

mbeta

joint effect estimates for SNPs in model given by mod; output from multibeta

SSy

sum(y.squared) for trait y

Sxy

vector of sum(xy) for snp x, trait y

Vy

trait variance

N

sample size

Value

ABF for model mod