Description Usage Arguments Details Value Author(s) See Also

View source: R/EF1_Denominator.R

`Workflow`

`EF1_Denominator`

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

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)
``` |

`Pdata` |
A PacFIN |

`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 |

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:

`sum(Pdata$FEMALES_WGT + Pdata$MALES_WGT)`

per unique`SAMPLE_NO`

`sum(Pdata$SPECIES_WGT)`

across all clusters in a sample, where the species weight is determined from the`cluster_wt`

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.

Additional columns are added to `Pdata`

:

Wt_Sampled_1

Wt_Sampled_2

LW_Calc_Wt: individual weights predicted from the specified length-weight relationships.

Wt_Sampled_3

Wt_Sampled: the sample weight that will be used in subsequent analyses, where this is preferentially Wt_Sampled_1, with NAs replaced with values from Wt_Sampled_2, and NAs remaining replaced with values from Wt_Sampled_3.

Wt_Method: a

`numeric`

value denoting which method was used for`Wt_Sampled`

.

Andi Stephens

`EF1_Numerator`

, `getExpansion_1`

, `getExpansion_2`

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

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.