Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

get_prior

Get priors for all parameters in a segment table.


Description

Starts by finding all default priors. Then replace them with user priors. User priors for change points are truncated appropriately using 'truncate_prior_cp“, if not done manually by the user already.

Usage

get_prior(ST, family, prior = list())

Arguments

ST

Tibble. A segment table returned by get_segment_table.

family

One of gaussian(), binomial(), bernoulli(), or poission(). Only default link functions are currently supported.

prior

A list of user-defined priors. Will overwrite the relevant default priors.

Value

A named list of strings. The names correspond to the parameter names and the strings are the JAGS code for the prior (before converting SD to precision).

Author(s)

Jonas Kristoffer Lindeløv jonas@lindeloev.dk


mcp

Regression with Multiple Change Points

v0.3.0
GPL-2
Authors
Jonas Kristoffer Lindeløv [aut, cre] (<https://orcid.org/0000-0003-4565-0595>)
Initial release
2020-07-27

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.