prior: Specify a prior

Description Usage Arguments Details Value Examples

View source: R/priors.r

Description

Specify a prior

Usage

1

Arguments

distribution

the prior distribution (see details)

...

see details

Details

Available distributions

The following distributions can be used for the prior

normal distribution

When distribution is set to normal then the following parameters must be set

uniform distribution

When distribution is set to uniform then the following parameters must be set

point

When distribution is set to point then the following parameters may be set

Value

an object of class prior

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
# specify a half-normal (range 0 to Infinity) prior
prior(distribution = "normal", mean = 0, sd = 13.3, range = c(0, Inf))

# specify a normal prior
prior(distribution = "normal", mean = 0, sd = 13.3)

# specify a uniform prior
prior(distribution = "uniform", min = 0, max = 20)

# specify a point prior
prior(distribution = "point", point = 0)

BayesianPlayground/bayesplay documentation built on Jan. 8, 2021, 12:42 a.m.