Description Usage Arguments Details Value
View source: R/conjugate_samplers.R
Conjugate Linear model
1 |
y |
k x 1 vector |
X |
n x k matrix |
mu0 |
k x 1 |
Lambda0 |
k x k |
a0 |
scalar |
b0 |
scalar |
calc_lml |
if TRUE also returns model evidence (log marginal likelihood) |
Model:
y_i ~ N(x_i^T β, σ^2)
β ~ N(μ0, σ^2 Λ0)
σ^2 ~ IG(a0, b0)
from https://en.wikipedia.org/wiki/Bayesian_linear_regression
list with elements muN, LambdaN, aN, bN, lml
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.