Somerton method
Arguments
- dat
data frame or matrix containing the data
- xvar
Name of column (integer or double) of measurements for the x - axis variable (e.g., carapace width).
- yvar
Name of column (integer or double) of measurements for the y-axis variable (e.g., claw height).
- log
Boolean; should both variables be log-transformed before performing the regression? Defaults to FALSE.
- lower
Integer or double; the lower bound for possible SM50 values. Must be on the same trans of the data. Defaults to the 20th percentile of the x-variable.
- upper
Integer or double; the upper bound for possible SM50 values. Must be on the same trans of the data. Defaults to the 80th percentile of the x-variable.
- max_iter
Maximum number of iterations