View source: R/density_prior.R
density_prior | R Documentation |
Densities for priors.
density_prior(vecB, prior_type, log = TRUE, ...)
vecB |
"Matrix". q-by-1, the prameters to be added with a prior. |
prior_type |
"Charactor". Types of prior |
log |
"Logical". IF TRUE(default), the logarithm density is returned. |
... |
Addtional arguments w.r.t. different priors. |
A collection of density for common priors.
"Matrix" p-by-1.
First version: Wed Mar 31 10:50:41 CEST 2010; Current: Wed Sep 15 10:36:55 CEST 2010.
DEPENDS: mvtnorm TODO: This function is used for the conditional model, not the conjugate case.
Feng Li, Dept. of Statistics, Stockholm University, Sweden.
g-Prior: Zellner(1986)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.