View source: R/cgeneric_Wishart.R
cgeneric_Wishart | R Documentation |
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
)
n |
the size of the precision matrix |
dof |
degrees of freedom model parameter |
R |
lower triangle of the scale matrix parameter |
debug |
integer, default is zero, indicating the verbose level. Will be used as logical by INLA. |
useINLAprecomp |
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. |
libpath |
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}
a inla.cgeneric
, cgeneric()
object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.