getRDD: getRDD method for the size based model

getRDDR Documentation

getRDD method for the size based model

Description

Calculates the density dependent recruitment (total egg production) R_i for each species. This is the flux entering the smallest size class of each species. The density dependent recruiment is the density independent recruitment after it has been put through the density dependent stock-recruitment relationship function. This method is used by the project_therMizer method for performing simulations.

getRDD method with rdi argument.

Usage

getRDD(object, n, n_pp, rdi, ...)

## S4 method for signature 'therMizerParams,matrix,numeric,matrix'
getRDD(object, n, n_pp, rdi,
  sex_ratio = 0.5)

Arguments

object

An therMizerParams object

n

A matrix of species abundance (species x size)

n_pp

A vector of the background abundance by size

rdi

A matrix of density independent recruitment (optional) with dimensions no. sp x 1. If not specified rdi is calculated internally using the getRDI method.

...

Other arguments (currently unused).

sex_ratio

Proportion of the population that is female. Default value is 0.5

ocean_temp

A numeric vector of the ocean temperature by realm or a single numeric ocean_temp value which is used for all realms.

Value

A numeric vector the length of the number of species.

Examples

## Not run: 
data(NS_species_params_gears)
data(inter)
params <- therMizerParams(NS_species_params_gears, inter)
# Project with constant fishing effort for all gears for 20 time steps
sim <- project_therMizer(params, t_max = 20, effort = 0.5)
# Get the energy at a particular time step
getRDD(params,sim@n[21,,],sim@n_pp[21,])

## End(Not run)

pwoodworth-jefcoats/Size-Based-Modeling documentation built on Sept. 15, 2023, 8:13 a.m.