Reconstructs the model-implied covariance matrix
\(\Sigma(x) = \Lambda(x)\Lambda(x)' + \sigma^2 I\) at a covariate value
x for every saved posterior draw, where
\(\lambda_{jk}(x) = q_{jk} f_k' x\).
Usage
posterior_Sigma(fit, x, summary = c("median", "mean", "none"))Arguments
- fit
A fitted
"bcaia"object frombcaia.- x
A numeric covariance-covariate vector of length
Pcov(matching the columns ofXcov, including the intercept).- summary
One of
"median"(default),"mean", or"none". With"none"the fullJ x J x nsamparray of posterior draws is returned.