BSLR: Bayesian simple linear regression

View source: R/BSLR.R

BSLRR Documentation

Bayesian simple linear regression

Description

Bayesian simple linear regression

Usage

BSLR(x, y, sig2 = 10, sig02 = 0.1)

Arguments

x

variable (SNP), n*1 vector.

y

trait, n*1 vector.

sig2

hyperparameter, the variance of the trait y.

sig02

hyperparameter, the variance of the coefficient.

Value

Bayes factor (log scale), the estimate of the coefficient, the posterior mean of the coefficient, the posterior variance of the coefficient.


statwangz/SuSiE documentation built on Nov. 22, 2022, 5:21 p.m.