Learn R Programming

mcp (version 0.3.3)

unpack_tildes: Takes a formula and returns a string representation of y, cp, and rhs

Description

Takes a formula and returns a string representation of y, cp, and rhs

Usage

unpack_tildes(segment, i)

Value

A one-row tibble with columns:

  • form: String. The full formula for this segment.

  • form_y: String. The expression for y (without tilde)

  • form_cp: String. The formula for the change point

  • form_rhs: String. The formula for the right-hand side

Arguments

segment

A formula

i

The segment number (integer)

Author

Jonas Kristoffer Lindeløv jonas@lindeloev.dk