weight_lw_residuals: A function to weight length-weight residuals by catch

View source: R/weight_lw_residuals.R

weight_lw_residualsR Documentation

A function to weight length-weight residuals by catch

Description

This function weights length-weight residuals by stratum biomass OR catch.

Usage

weight_lw_residuals(
  residuals,
  year,
  stratum = NA,
  stratum_biomass = NA,
  catch = 1
)

Arguments

residuals

Vector of residuals residuals that will be weighted by stratum biomass or catch.

year

Vector of years Year of sample must be the same length as the residuals.

stratum

Vector of strata for weighting.

stratum_biomass

Vector of stratum biomass.

catch

Vector of catch for weighting residuals by haul (default = 1).


afsc-gap-products/akfishcondition documentation built on June 11, 2025, 5:37 p.m.