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

unpack_cp

Takes a cp formula (as a string) and returns its properties


Description

Takes a cp formula (as a string) and returns its properties

Usage

unpack_cp(form_cp, i)

Arguments

form_cp

Segment formula as string.

i

The segment number (integer)

Value

A one-row tibble with columns:

  • cp_int: bool. Whether there is an intercept change in the change point.

  • cp_in_rel: bool. Is this intercept change relative?

  • cp_ran_int: bool or NA. Is there a random intercept on the change point?

  • cp_group_col: char or NA. Which column in data define the random intercept?

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.