sur_sample_gibbs_cpp {surbayes} | R Documentation |
Power Prior Gibbs sampling
Description
This is a c++ implementation of Gibbs sampling SUR model with power prior
Usage
sur_sample_gibbs_cpp(
Sigma,
M,
X,
X0,
XtX,
X0tX0,
Y,
Y0,
y,
y0,
a0,
pvec,
burnin,
thin
)
Arguments
Sigma |
initial value for covariance matrix |
M |
number of samples |
X |
design matrix for current data |
X0 |
design matrix for historical data |
XtX |
matrix that is |
X0tX0 |
matrix that is |
Y |
future response as matrix (Y1, ..., YJ) |
Y0 |
historical response as matrix (Y01, ..., Y0J) |
y |
future response as vector |
y0 |
historical response as vector |
a0 |
power prior parameter |
pvec |
|
burnin |
Burn-in parameter |
thin |
Thin parameter |
Value
sampled covariance matrix
[Package surbayes version 0.1.2 Index]