fit.lw: fit log length-weight relationship by year or period

View source: R/fit.lw.R

fit.lwR Documentation

fit log length-weight relationship by year or period

Description

fit log length-weight relationship by year or period

Usage

fit.lw(
  length,
  weight,
  year = 1,
  period = 1,
  tresh = 150,
  period.unit = c("month", "quarter"),
  regression = c("robust", "ols")
)

Arguments

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?

Details

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


iml-assess/catchR documentation built on Nov. 27, 2022, 7:35 p.m.