fill_fertility: Combine prior and data for fertility matrix

Description Usage Arguments Details Value

View source: R/fill_funcs.R

Description

fill_fertility returns the expected value of the fertility matrix combining observed recruits for one time step and a Gamma prior for each column.

Usage

1
2
3
4
5
6
7
8
fill_fertility(
  TF,
  N,
  alpha = 1e-05,
  beta = 1e-05,
  priorweight = -1,
  returnType = "F"
)

Arguments

TF

A list of two matrices, T and F, as ouput by projection.matrix.

N

A vector of observed stage distribution.

alpha

A matrix of the prior parameter for each stage. Impossible stage combinations marked with NA_real_.

beta

A matrix of the prior parameter for each stage. Impossible stage combinations marked with NA_real_.

priorweight

total weight for each column of prior as a percentage of sample size or 1 if negative

returnType

A character vector describing the desired return value. Defaults to "F" the fertility matrix

Details

Assumes that only one stage reproduces ... needs generalizing.

Value

The return value depends on parameter returnType.


atyre2/raretrans documentation built on Sept. 28, 2020, 8:55 p.m.