getResampledNASCDistr: Resample NASC distribution

Description Usage Arguments Value Examples

Description

Generates resampled NASC distribution.

Usage

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

Arguments

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

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 May 14, 2019, 8:58 a.m.