View source: R/StoxReportFunctions.R
ReportRecaCatchAtAgeCovariance | R Documentation |
Tabulates the covariance between age groups of (number) at age from MCMC simulations using Reca.
MCMC simulations are typically obtained with RunRecaModels
.
Covariances are obtained from the posterior distribution.
If 'RecaCatchAtAge' contains estimate for a set of aggregation variables, such as area, gear, stock, etc., covariances are calculated between age groups for each of these aggregation variables.
Rounding of numbers according to the argument 'Decimals' is done with round
,
so that negative numbers specify rounding to powers of ten, and rounding of the digit 5 is towards the even digit.
The units considered valid for catch at age in numbers are those listed for quantity 'cardinaltiy' in StoxUnits
ReportRecaCatchAtAgeCovariance(
RecaCatchAtAge,
PlusGroup = integer(),
Decimals = integer(),
Unit = RstoxData::getUnitOptions("cardinality", conversionRange = c(1, 1e+12))
)
RecaCatchAtAge |
Results from MCMC simulations ( |
PlusGroup |
If given, ages 'PlusGroup' or older are included in a plus group. |
Decimals |
integer specifying the number of decimals to report for 'Covariance'. Defaults to 0. |
Unit |
unit for 'CatchAtAge'. Covariance will be provided as the square of this unit. |
ReportFdaCatchAtAgeCovarianceData
RunRecaModels
for running Reca-analysis and ReportRecaCatchAtLength
for reporting length composition.
covariances <- RstoxFDA::ReportRecaCatchAtAgeCovariance(RstoxFDA::RecaCatchAtAgeExample,
PlusGroup = 13)
covariances$CovarianceNbyAge
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.