popdynCPP: Population dynamics model in CPP

Description Usage Arguments Author(s)

View source: R/RcppExports.R

Description

Project population forward pyears given current numbers-at-age and total mortality, etc for the future years

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
popdynCPP(
  nareas,
  maxage,
  Ncurr,
  pyears,
  M_age,
  Asize_c,
  MatAge,
  WtAge,
  Vuln,
  Retc,
  Prec,
  movc,
  SRrelc,
  Effind,
  Spat_targc,
  hc,
  R0c,
  SSBpRc,
  aRc,
  bRc,
  Qc,
  Fapic,
  maxF,
  MPA,
  control,
  SSB0c,
  plusgroup = 0L
)

Arguments

nareas

The number of spatial areas

maxage

The maximum age

Ncurr

A numeric matrix (maxage, nareas) with current numbers-at-age in each area

pyears

The number of years to project the population forward

M_age

Numeric matrix (maxage, pyears) with natural mortality by age and year

Asize_c

Numeric vector (length nareas) with size of each area

MatAge

Numeric vector with proportion mature by age

WtAge

Numeric matrix (maxage, pyears) with weight by age and year

Vuln

Numeric matrix (maxage, pyears) with vulnerability by age and year

Retc

Numeric matrix (maxage, pyears) with retention by age and year

Prec

Numeric vector (pyears) with recruitment error

movc

Numeric array (nareas by nareas) with the movement matrix

SRrelc

Integer indicating the stock-recruitment relationship to use (1 for Beverton-Holt, 2 for Ricker)

Effind

Numeric vector (length pyears) with the fishing effort by year

Spat_targc

Integer. Spatial targetting

hc

Numeric. Steepness of stock-recruit relationship

R0c

Numeric vector of length nareas with unfished recruitment by area

SSBpRc

Numeric vector of length nareas with unfished spawning per recruit by area

aRc

Numeric. Ricker SRR a value by area

bRc

Numeric. Ricker SRR b value by area

Qc

Numeric. Catchability coefficient

Fapic

Numeric. Apical F value

maxF

A numeric value specifying the maximum fishing mortality for any single age class

MPA

Spatial closure by year and area

control

Integer. 1 to use q and effort to calculate F, 2 to use Fapic (apical F) and vulnerablity to calculate F.

plusgroup

Integer. Include a plus-group (1) or not (0)?

SSBcurr

A numeric vector of length nareas with the current spawning biomass in each area

Author(s)

A. Hordyk


DLMtool/DLMtool documentation built on June 20, 2021, 5:20 p.m.