calcL10ApproximateBayesFactorWen: Approximate Bayes factor

View source: R/quantgen.R

calcL10ApproximateBayesFactorWenR Documentation

Approximate Bayes factor

Description

Calculate the log10(ABF) under the SSMR model (equation 11 with s=1) of Wen (Biometrics, 2013).

Usage

calcL10ApproximateBayesFactorWen(
  Y,
  Xg,
  Xc,
  Wg = NULL,
  phi = NULL,
  oma = NULL,
  alpha = 0,
  H = 0,
  nu = 0,
  ES = TRUE
)

Arguments

Y

n x r phenotype matrix

Xg

n x p genotype matrix

Xc

n x q design matrix of covariates

Wg

r x r prior var-covar matrix on beta_g (if NULL, requires phi and oma)

phi

used to make Wg

oma

used to make Wg

alpha

mixing proportion

H

r x r matrix parameter of Wishart prior

nu

positive scalar parameter of Wishart prior

ES

if TRUE, use the scale-invariant prior formulation

Value

numeric

Author(s)

Xiaoquan Wen [aut], Timothee Flutre [ctb,cre]

See Also

calcL10ApproximateBayesFactorWenStephens


timflutre/rutilstimflutre documentation built on Feb. 7, 2024, 8:17 a.m.