eightMethods.count: Compute exponents for the IBTS dataset using all eight...

View source: R/fitting.R

eightMethods.countR Documentation

Compute exponents for the IBTS dataset using all eight methods, explicitly using the counts which can be non-integer.

Description

Compute exponents for the IBTS dataset using all eight methods, explicitly using the counts (number of each bodyMass), which can be non-integer.

Usage

eightMethods.count(data = data, oneYear = 1980, figName = "eightMCnt")

Arguments

data

local data frame that has a unique row for every combination of Year, SpecCode and LngtClass. The Number column is the number of observed individuals of that species in that length class in that year. bodyMass is the body mass representative of such an individual, as calculated previously by LWa * LngtClass ^ LWb.

oneYear

the year of data to use, from that in the multiple years contained in data

figName

figure name, will get appended by -Year for each year, to create a .png plot for each year.

Details

In eightMethods(), had to expand data to get a vector, x, of individual fish sizes (lengths or weights), which is how the original methods functions are written. Now adding explicit methods here, such as Llin.method.counts(), to deal explicitly with counts, and that should also work for non-integer counts. For integer counts, the original expansion to give x should give the same results.

Value

data frame with one row for each method, with columns:

  • Year

  • Method

  • b (estimate of b from that method)

  • confMin (lower end of 95\

  • confMax (upper end of 95\ a .png figure paste(figName, "-", oneYear, ".png") of the fits for each of the eight methods

Author(s)

Andrew Edwards


andrew-edwards/sizeSpectra documentation built on June 28, 2023, 7:09 p.m.