inla.cgeneric
to implement the Wishart
prior for a precision matrix.Build an inla.cgeneric
to implement the Wishart
prior for a precision matrix.
cgeneric_Wishart(
n,
dof,
R,
debug = FALSE,
useINLAprecomp = TRUE,
libpath = NULL
)
a inla.cgeneric
, cgeneric()
object.
the size of the precision matrix
degrees of freedom model parameter
lower triangle of the scale matrix parameter
integer, default is zero, indicating the verbose level. Will be used as logical by INLA.
logical, default is TRUE, indicating if it is to be used the shared object pre-compiled by INLA. This is not considered if 'libpath' is provided.
string, default is NULL, with the path to the shared object.
For a random \(p\times p\) precision matrix \(Q\), given the parameters \(d\) and \(R\), respectively scalar degree of freedom and the inverse scale \(p\times p\) matrix the Wishart density is $$|Q|^{(d-p-1)/2}\textrm{e}^{-tr(RQ)/2}|R|^{p/2}2^{-dp/2}\Gamma_p(n/2)^{-1}$$