Description Usage Arguments Value Note See Also Examples
Extract the sample size that was used in a model, from catchatage or catchatlength data.
1 
model 
fitted 
what 
name of model element: 
series 
vector of strings indicating which gears or surveys to analyze (all by default). 
digits 
number of decimal places to use when rounding, or

Numeric vector of yearspecific sample sizes, or a list of such vectors when analyzing multiple series.
Thin wrapper to access model$element$SS
, providing a uniform
interface with other get*
and est*
functions.
See discussion in the estN
documentation.
getN
, getSigmaI
, getSigmaR
,
estN
, estSigmaI
, and
estSigmaR
extract and estimate sample sizes and sigmas.
scapepackage
gives an overview of the package.
1 2 3 4 5 6 7 8 9 10 11 12 13  ## Exploring candidate sample sizes:
getN(x.sbw) # sample sizes used in assessment: number of tows
estN(x.sbw) # effective sample size, given data (tows) and model fit
## Multiple series:
getN(x.ling, "CLc") # sample size used in assessment
getN(x.ling, "CLc", digits=0) # rounded
estN(x.ling, "CLc") # model fit implies larger sample sizes
getN(x.ling, "CLc", series="1", digits=0) # get one series
estN(x.ling, "CLc", series="1") # estimate one series

Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.