Llin.method: Fit size spectrum using Llin method

View source: R/fitting.R

Llin.methodR Documentation

Fit size spectrum using Llin method

Description

Fit size spectrum using Llin method, which is plotting binned counts on log-linear axes and then fitting a linear regression.

Usage

Llin.method(bodyMass, num.bins = NULL, binBreaks = NULL)

Arguments

bodyMass

vector of individual body masses

num.bins

number of bins to be used, though this is only a suggestion since can get over-ridden by hist()

binBreaks

breaks for the bins to be used to bin the data and then fit the regression

Value

list containing:

  • mids: midpoint of bins

  • log.counts: log(counts) in each bin

  • counts: counts in each bin

  • lm: results of the linear regression of log.counts ~ mids

  • slope: slope of the linear regression fit

  • breaks: bin breaks

  • confVals: 95\

Author(s)

Andrew Edwards


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