sd_prior {readsdr}R Documentation

SD prior

Description

SD prior

Usage

sd_prior(par_name, dist, dist_pars, type = "constant", min_0 = FALSE)

Arguments

par_name

A string

dist

A string

dist_pars

A vector

type

A string. It can be either 'constant' or 'init'. It is 'constant' by default. 'init' refers to parameters that have only affect the model at time 0.

min_0

An optional boolean indicating whether the prior has a lower bound at zero. In the current implementation, this parameter only has an effect on normal priors.

Value

A list

Examples

sd_prior("par_beta", "lognormal", c(0, 1))
sd_prior("par_rho", "normal", c(0, 1), min_0 = TRUE)

[Package readsdr version 0.3.0 Index]