View source: R/get_segment_table.R
get_segment_table | R Documentation |
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.