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

unpack_rhs

Unpack right-hand side


Description

This is a pretty big function. It includes unpacking sigma(), ar(), etc.

Usage

unpack_rhs(form_rhs, i, family, data, last_segment)

Arguments

form_rhs

A character representation of a formula

i

The segment number (integer)

family

An mcpfamily object returned by mcp_family().

data

A data.frame or tibble

last_segment

The last row in the segment table, made in get_segment_table()

Value

A one-row tibble with three columns for each of ct. sigma, ar, and ma:

  • _int: NA or a one-row tibble describing the intercept.

  • _slope: NA or a tibble with a row for each slope term.

  • _code: NA or a char with the JAGS/R code to implement the slope.

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.