# Script containing prior definitions
#
# PC PRECISION pc.prec
# Returns log of pc precision prior for theta, the log-precision
# Works for multidim theta
pcprec <- function(theta,u,alpha) {
lambda <- -log(alpha)/u
sum(log(lambda/2) - lambda * exp(-theta/2) - theta/2)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.