Learn R Programming

bssm (version 1.0.0)

uniform: Prior objects for bssm models

Description

These simple objects of class bssm_prior are used to construct a prior distributions for the MCMC runs of bssm package. Currently supported priors are uniform (uniform()), half-normal (halfnormal()), normal (normal()), and truncated normal distribution (tnormal()).

Usage

uniform(init, min, max)

halfnormal(init, sd)

normal(init, mean, sd)

tnormal(init, mean, sd, min = -Inf, max = Inf)

Arguments

init

Initial value for the parameter, used in initializing the model components and as a starting value in MCMC.

min

Lower bound of the uniform and truncated normal prior.

max

Upper bound of the uniform and truncated normal prior.

sd

Standard deviation of the (underlying i.e. non-truncated) Normal distribution.

mean

Mean of the Normal prior.

Value

object of class bssm_prior.