log_prior: User defined log prior

Description Usage Arguments Details Value Author(s) Examples

View source: R/log_prior.R

Description

User defined log prior based on the parameter value only.

Usage

1
log_prior(theta)

Arguments

theta

A parameter named numeric vector.

Details

The default is a gaussian prior with large covariance matrix. This is actually a prior on the parameters in log space. The prior can can thus be thought of as a log normal prior.

Value

A numerical value

Author(s)

Edouard Pauwels

Examples

1
2
theta <- 50 + sample(c(0,1), size = 34, replace = TRUE)
log_prior(theta)

Example output

Loading required package: deSolve
Loading required package: ggplot2
[1] -2.302606

pauwels2014 documentation built on May 1, 2019, 6:29 p.m.