expandHerm
expands the Herm list in SexPars to a matrix of fractions at age
checkHerm
checks that each array in the list has dimension nsim x maxage+1 x nyears + proyears.
For backwards compatibility, also converts matrices to arrays by adding the year dimension.
subsetHerm
returns year-specific Herm values.
expandHerm(Herm, maxage, np, nsim)checkHerm(Herm, maxage, nsim, nyears, proyears)
subsetHerm(Herm, y)
A list of Hermaphroditic fractions at age
The maximum age of stocks being simulated
The total number of stocks being simulated
The number of simulations
The number of historical years
The number of projection years
The year to subset
T. Carruthers
Q. Huynh