build.PandF: Construct time varying fecundity rates and birth ogives

Description Usage Arguments Value Examples

View source: R/inputFunctions.R

Description

Prepare the fecundity vector and the birth ogive matrix used by the model. A linear transition between years with missing data is used.

Usage

1
2
3
4
5
6
7
8
build.PandF(
  Fdat = fecundity,
  Fproj = Fproj,
  Pdat = Pdat,
  Pper = Pper,
  years = years,
  return.periods = T
)

Arguments

Fdat

Observed fecundity rates.

Fproj

Which fecundity rate used in projections. Default is mean value over all observed fecundity rates ("mean"). If not a specified fecundity rate can be used (just insert number).

Pdat

Observed birth ogives.

Pper

For which time periods the birth ogives are valid.

years

Start and stop year for the model (without projections).

return.periods

Whether to return data frame containing information about time periods of P and F sampling. NOTE! This is to allow plotting fecundity curves, distinguishing between real sampled values and interpolated between sampling periods. The returned object, Pper, must be omitted from data that are input into model.

Value

Pmatrix Time varying birth ogives.

Examples

1
FvecandPmat <- build.PandF(fecundity,catch_data,Fproj,Pdat,Pper)

NorskRegnesentral/rSPAMM documentation built on Nov. 16, 2020, 10:58 p.m.