View source: R/cgeneric_Wishart.R
| cgeneric_Wishart | R Documentation |
cgeneric to implement the Wishart
prior for a precision matrix.Build an cgeneric to implement the Wishart
prior for a precision matrix.
cgeneric_Wishart(n, dof, R, ...)
n |
integer to define the size of the precision matrix |
dof |
degrees of freedom model parameter |
R |
lower triangle of the scale matrix parameter |
... |
additional arguments passed on to
|
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 cgeneric, INLAtools::cgeneric() object.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.