bootstrapOneIteration: Run one bootstrap iteration of biotic stations and acoustic...

Description Usage Arguments Value

View source: R/rstox_boostrap.r

Description

This function is used in bootstrapParallel().

Usage

1
2
3
4
bootstrapOneIteration(i, projectName, assignments, strata, psuNASC = NULL,
  stratumNASC = NULL, resampledNASC = NULL,
  startProcess = "TotalLengthDist", endProcess = "SuperIndAbundance",
  seedV = NULL, sorted = TRUE)

Arguments

i

The boostrap iteration number.

projectName

The name or full path of the project, a baseline object (as returned from getBaseline or runBaseline, og a project object (as returned from openProject).

assignments

Trawl assignment from baseline.

strata

The strata of the survey.

psuNASC

MeanNASC from baseline.

stratumNASC

Strata NASC estimates from getNASCDistr(baseline).

resampledNASC

Resampled NASC distribution.

startProcess

The start process of the bootstrapping, being the first process before which biostations has been assigned and NASC values have been calculated.

endProcess

The end process of the bootstrapping, being the process returning a matrix containing the following columns: "Stratum", "Abundance", "weight", and grouping variables such as "age", "SpecCat", "sex".

seedV

A vector of seeds. seedV[i] is used.

sorted

Should the data be sorted prior to sampling?

Value

list with (1) the abundance by length in the bootstrap run, (2) the abundance by super individuals in the bootstrap run


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