distributeAbundance: Impute unknown individual biological parameters from known...

Description Usage Arguments Value

View source: R/rstox_reports.r

Description

This function fills in holes in individual fish samples (also called imputation). In cases where individuals are not aged, missing biological variables (e.g "weight","age","sex", and "specialstage") are sampled from fish in the same length group at the lowest imputation level possible. imputeLevel = 0: no imputation, biological information exists imputeLevel = 1: imputation at station level; biological information is selected at random from fish within station imputeLevel = 2: imputation at strata level; no information available at station level, random selection within stratum imputeLevel = 3: imputation at survey level; no information available at lower levels, random selection within suvey imputeLevel = 99: no imputation, no biological information exists for this length group

Usage

1
distributeAbundance(i = NULL, abnd, seedV = NULL)

Arguments

i

The index in the list of bootstrap iterations.

abnd

Abundance matrix with individual data

seedV

The seed vector for the random number generator, where element 'i' is picked out (this may seem strange, but is a consequence of the parallelability of the function, where 'i' is the primary parameter).

Value

Abundance matrix with imputed biological information


Sea2Data/Rstox documentation built on April 18, 2018, 11:11 p.m.