Description Usage Arguments Details
Fits any of several types of "slope break" fits to WSE-w data
1 2 | fit_slopebreak(WSEw, mersel = FALSE, thres = 0.015, window = 4,
multiple_breaks = FALSE, continuity = TRUE, minlen = 5)
|
WSEw |
WSEw data (at a given level of exposure) |
mersel |
flag for Mersel method |
thres |
threshold for Mersel method, must be provided if using Mersel method. 0.015 has been used in the past. |
multiple_breaks |
one slope break or multiple slope breaks |
continuity |
require continuity between piecewise fits? |
minlen |
minimum segment length for breakpoints(). Default is 5. |
thres |
moving average window for Mersel method, must be provided if using Mersel method. Default value is 4. |
# if no slope breaks are identified, it just fits a single linear model Can do the following types of fits 1. Linear with one breakpoint, continuous 2. Linear with one breakpoint, noncontinuous 3. Linear with several breakpoints, continous 4. Linear with several breakpoints, noncontinuous (returns just the lowest fit) 5. Mersel method: linear with one breakpoint, noncontinous, screens out "non-optimal" cross sections (returns just the lowest fit) See attributes(fit)$ef for error flags. Value 0 means no error, 1 means not enough data points
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.