| cp_aic_eta | R Documentation | 
Calculates and plots the AIC and eta-squared statistics for diferent layer models based on a changepoint analysis using the mean and variance.
cp_aic_eta(data, m = 10, nl = 3)
data | 
 A data frame containing the location variable (depth or distance) in the first column, and the value of interest in the second column  | 
m | 
 The maximum number of breakpoints (# layers - 1) to look for  | 
nl | 
 The minimum number of points per layer to be considered  | 
The example data given is intended to show the structure needed for input data. The user should follow this structure, which in general corresponds with a data frame with a sequence in the first column and the observed/measured values in the second column
A ggplot and plotly objects showing the AIC and eta-squared statistics, and a data frame with all the data and possible layer models
cp_aic_eta(DPM_data, m = 10, nl = 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.