View source: R/StoxReportFunctions.R
ReportRecaLengthAtAge | R Documentation |
Tabulates summary statistics for mean length at age from MCMC simulations using Reca.
MCMC simulations are typically obtained with RunRecaModels
.
Summary statistics are obtained from the posterior distribution, and
the interval is reported as equal-tailed credible intervals are reported.
Mean length for plus-groups are a weighted by the relative catch-at-age in each composite age group. For iterations where all of the plus-group ages have a zero catch at age, this weight is not defined, and summary statistics are obtained from the remaining iterations.
If 'RecaCatchAtAge' contains estimate for a set of aggregation variables, such as area, gear, stock, etc., summary statistics will be presented similarly.
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 mean lengths are those listed for quantity 'length' in StoxUnits
ReportRecaLengthAtAge(
RecaCatchAtAge,
PlusGroup = integer(),
IntervalWidth = numeric(),
Decimals = integer(),
Threshold = numeric(),
Unit = RstoxData::getUnitOptions("length", conversionRange = c(1e-07, 10))
)
RecaCatchAtAge |
Results from MCMC simulations ( |
PlusGroup |
If given, ages 'PlusGroup' or older are included in a plus group. |
IntervalWidth |
The width of the reported credible interval. A value of 0.9 gives 90 per cent credible intervals. Defaults to 'r stoxFunctionAttributes$ReportRecaLengthAtAge$functionParameterDefaults$IntervalWidth'. |
Decimals |
integer specifying the number of decimals to report for 'MeanIndividualLength', 'SD', 'Low' and 'High'. Defaults to 'r stoxFunctionAttributes$ReportRecaLengthAtAge$functionParameterDefaults$Decimals'. |
Threshold |
threshold for reporting mean weight. Rows with an estimated Catch At Age (number of individuals) lower than this will have NA reported for their mean length Defaults to 'r stoxFunctionAttributes$ReportRecaLengthAtAge$functionParameterDefaults$Threshold'. |
Unit |
unit for 'MeanIndividualLength', 'SD', 'Low' and 'High' |
ReportFdaLengthAtAgeData
RunRecaModels
for running Reca-analysis
lengthAtAge <- ReportRecaLengthAtAge(RstoxFDA::RecaCatchAtAgeExample,
PlusGroup = 13, Unit="cm", Decimals = 0)
lengthAtAge$MeanLengthByAge
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.