Build a table describing a list of segments
Used internally for most mcp functions.
get_segment_table(model, data = NULL, family = gaussian(), par_x = NULL)
model |
A list of formulas - one for each segment. The first formula
has the format
|
data |
Data.frame or tibble in long format. |
family |
One of |
par_x |
String (default: NULL). Only relevant if no segments contains slope (no hint at what x is). Set this, e.g., par_x = "time". |
A tibble with one row describing each segment and the corresponding code.
Jonas Kristoffer Lindeløv jonas@lindeloev.dk
model = list( y ~ 1 + x, 1 + (1|id) ~ 1 ) get_segment_table(model)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.