EF1_Denominator: Calculate the denominator for the level-1 expansion factor.

Description Usage Arguments Details Value Author(s) See Also

View source: R/EF1_Denominator.R

Description

Workflow

EF1_Denominator is not run by the user. It is a sub-function of getExpansion_1

Usage

1
2
3
EF1_Denominator(Pdata, Indiv_Wgts = TRUE, fa = 2e-06, fb = 3.5,
  ma = 2e-06, mb = 3.5, ua = 2e-06, ub = 3.5, verbose = TRUE,
  plot = FALSE)

Arguments

Pdata

A PacFIN data.frame

Indiv_Wgts

A logical value, controlling whether or not individual fish weights should be generated using the specified weight-length relationship.

fa

Female specific weight length coefficient.

fb

Female specific weight length exponent.

ma

Male specific weight length coefficient.

mb

Male specific weight length exponent.

ua

Unsexed weight length coefficient.

ub

Unsexed weight length exponent.

verbose

Report extra information. Default: TRUE

plot

Create plots. Default: FALSE

Details

The denominator of the level-1 expansion factor is the weight of the sampled fish in a tow. The calcuation is done one in three ways, all of which are returned, though the column used in subsequent analyses is based on the hierarchical structure of:

  1. sum(Pdata$FEMALES_WGT + Pdata$MALES_WGT) per unique SAMPLE_NO

  2. sum(Pdata$SPECIES_WGT) across all clusters in a sample, where the species weight is determined from the cluster_wt

  3. Calculate weights of males and females given the weight length relationship, if the length of a fish does not exist, then the median weight of all weighed fish in the sample is used.

Value

Additional columns are added to Pdata:

Author(s)

Andi Stephens

See Also

EF1_Numerator, getExpansion_1, getExpansion_2


nwfsc-assess/PacFIN.Utilities documentation built on June 30, 2017, 8:49 a.m.