getResampledNASCDistr: Resample NASC distribution

Description Usage Arguments Value Examples

View source: R/rstox_acoustic.r

Description

Generates resampled NASC distribution.

Usage

1
2
getResampledNASCDistr(baseline, psuNASC, stratumNASC, parameters,
  sorted = TRUE)

Arguments

baseline

StoX Java baseline object.

psuNASC

MeanNASC table from baseline.

stratumNASC

Strata NASC estimates from getNASCDistr(baseline).

parameters

Parameters set by user in Stox; parameters$nboot: Number of bootstrap replicates parameters$seed: The seed for the random number generator (used for reproducibility)

sorted

Should the data be sorted prior to sampling?

Value

Matrix of resampled strata NASC means

Examples

1
2
3
4
5
projectName <- "Test_Rstox"
psuNASC <- getPSUNASC(projectName)
stratumNASC <- getNASCDistr(projectName, psuNASC=psuNASC, NASCDistr="normal")
resampledNASC <- getResampledNASCDistr(projectName, psuNASC=psuNASC, stratumNASC=stratumNASC, 
    parameters=list(seed=1, nboot=5))

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