Description Usage Arguments Details Value Examples
Gibbs sampler for linear regression
1 | gibbs_lm_R(y, X, steps)
|
y |
a vector of the response variable |
X |
a matrix whose columns are the explanatory variables |
steps |
number of iterations to run Gibbs sampler for |
Assumes Normal likelihood and joint prior proportional to 1 / sigma2
a list of posterior samples for regression coefficients
1 2 3 4 5 6 7 8 9 10 11 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.