Learn R Programming

scape (version 2.3.5)

getSigmaR: Extract Recruitment sigma

Description

Extract sigma R (recruitment variability) that was used in a model, as indicated in the Dev$sigmaR model component.

Usage

getSigmaR(model, digits=NULL)

Value

Vector of two numbers, representing recruitment variability in (1) the estimated age composition in the first year, and (2) subsequent annual recruitment.

Arguments

model

fitted scape model containing element Dev.

digits

number of decimal places to use when rounding, or NULL to suppress rounding.

See Also

getN, getSigmaI, getSigmaR, estN, estSigmaI, and estSigmaR extract and estimate sample sizes and sigmas.

Examples

Run this code
getSigmaR(x.cod)  # sigmaR used in assessment 0.5 and 1.0
estSigmaR(x.cod)  # model estimates imply 0.20 and 0.52

getSigmaR(x.ling)  # 0.6, deterministic age distribution in first year
estSigmaR(x.ling)  # model estimates imply 0.36

getSigmaR(x.sbw)
estSigmaR(x.sbw)  # large deviates in first year
plotN(x.sbw)      # enormous plus group and 1991 cohort

# x.oreo assessment had deterministic recruitment, so no deviates

Run the code above in your browser using DataLab