Description Usage Arguments Details Value Author(s)
Apply the multinomial or Dirichlet distribution to sample composition data, creating a data frame that mimics observed composition data.
1 | sample_comp(data, Nsamp, fleets, years, ESS = NULL, cpar = 1)
|
data |
A data frame with informational columns followed by columns of compositional data. The informational columns must include columns labeled 'Yr' and 'FltSvy' and end with a column labeled 'Nsamp'. Columns of compositional data should follow 'Nsamp'. Rows of compositional data do not need to sum to one. |
Nsamp |
*A numeric list of the same length as |
fleets |
*A vector of integers specifying which fleets to include.
The order of the fleets pertains to the input order of other arguments.
An entry of |
years |
*A list the same length as |
ESS |
The final effective sample size (ESS) associated with the
simulated data. The ESS is not used to generate the simulated data
but can be used as an input sample size in subsequent models that estimate
population parameters or status.
The default, |
cpar |
A numeric value or vector the same length as
|
Sample size, i.e., 'Nsamp', is used as a measure of precision,
where higher sample sizes lead to simulated samples that more accurately
represent the truth provided in data
.
A data frame of observed composition data.
Kelli Faye Johnson
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.