Description Usage Arguments Details Value Author(s)
View source: R/algorithms__log_prior.R
A collection of log densities for common priors.
1 | log_prior(B, priorArgs)
|
B |
"matrix". The paramter that need to be added with a prior. The prior density is calculated conditional on B. B should be always an one-column matrix, |
priorArgs |
"list". when priorArgs$prior_type: is set to "mvnorm", you have to provide priorArgs$mean: "matrix", the mean of parameter, mu0 should be always an one-column matrix; priorArgs$covariance: "matrix", the covariance matrix. A g-prior can be constructed by setting it to X'X, where X is the covariates matrix.; priorArgs$shrinkage: "numeric", the shrinkage for the covariance. |
The parameters after "..." should be matched exactly.
"scalor". The log density of priors.
Feng Li, Department of Statistics, Stockholm University, Sweden.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.