prior_n: Normal Prior distribution

Description Usage Arguments Value Examples

View source: R/Functions.R

Description

This normal prior distribution is a product of univariate N(mu,sig)

Usage

1
prior_n(pars, mu, sig, Log = FALSE)

Arguments

pars

parameter values

mu

mean value of each parameter value

sig

standard deviation of each parameter value

Log

logical to take the log of prior or not (defaults to FALSE)

Value

val Product of probability values for each parameter

Examples

1
2
prior_n(rep(0,6),0,10,Log = TRUE) #log of prior
prior_n(rep(0,6),0,10,Log = FALSE) #no log

bayesdistreg documentation built on May 1, 2019, 8:03 p.m.