View source: R/calculate_regions.R
calcregions | R Documentation |
calcregions
fits segmented regression models to all possible regions, up to noregions number of regions.
calcregions(Xvar, Yvar, noregions)
Xvar |
Positional variable e.g., vertebral count. |
Yvar |
Dependent variable. |
noregions |
Maximum number of regions to be computed, up to 6. |
Returns a matrix containing residual sums of squares and r-squared values for each model.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.