View source: R/compile_regions.R
| compileregions | R Documentation |
Uses calcregions to calculate region models for each variable separately, then
exports the summed residual sums of squares.
compileregions(Xvar, data, noregions = 2)
Xvar |
Positional variable e.g., vertebral count. |
data |
Matrix of dependent variables. |
noregions |
Maximum number of regions to be computed, up to 6. |
This function feeds data into calcregions, compiles the results and calculates model fitting
metrics.
Returns a data matrix with one row for each model. Columns include model parameters (breakpoints) and residual sums of squares for each dependent variable
data("alligator")
Xvar=alligator[,1]
data=alligator[,2:ncol(alligator)]
regiondata=compileregions(Xvar, data, 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.