fit.lw | R Documentation |
fit log length-weight relationship by year or period
fit.lw( length, weight, year = 1, period = 1, tresh = 150, period.unit = c("month", "quarter"), regression = c("robust", "ols") )
length |
vector of lengths (log scale) |
weight |
vector of weights (log scale) |
year |
vector of years |
period |
vector of periods |
tresh |
minimum number of observations |
regression |
type of regression (ols or rubust) |
interval |
period is month or quarter? |
find lenght weight-relationships for all possible combinations of years and periods. Works with a minimal threshold for individuals needed, and if not attained 1) looks for data in nieghbouring months and 2) uses data for the entire year returns coefficients, bias correction factor for use log scale , number of observations and the option used to get enough observations RObuust regression by default (lts). lms and ordinary ls also possible. See MASS package for details
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.