Fits separate linear models for each group of the line between the break points identified by `id_inflections` or `id_slope_changes`

sizer_lm(data = NULL, x = NULL, y = NULL, group_col = NULL)

Arguments

data

(dataframe) data object returned by `id_inflections` or `id_slope_changes`

x

(character) column name in `data` that is the x-axis

y

(character) column name in `data` that is the y-axis

group_col

(character) column name in `data` that identifies sections of trendline that share a common slope (see object returned by `id_inflections` or `id_slope_changes`)

Value

(list) containing (1) the model summary statistics and (2) the the estimates of the intercept and line