Description Usage Arguments Details Value
fill_fertility
returns the expected value of the fertility
matrix combining observed recruits for one time step and a Gamma prior for each column.
1 2 3 4 5 6 7 8 | fill_fertility(
TF,
N,
alpha = 1e-05,
beta = 1e-05,
priorweight = -1,
returnType = "F"
)
|
TF |
A list of two matrices, T and F, as ouput by |
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 |
Assumes that only one stage reproduces ... needs generalizing.
The return value depends on parameter returnType.
A - the summed matrix "filled in" using a Gamma prior
F - just the filled in fertility matrix
ab - the posterior parameters alpha and beta as a list.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.