Create a birth process matrix.

bbs_matrix_birth(
  fecundity,
  female_recruit_stage = 1,
  male_recruit_stage = NULL,
  proportion_female = 0.5
)

Arguments

fecundity

A vector of the fecundity rates in each stage.

female_recruit_stage

A positive whole number of the stage representing female recruits.

male_recruit_stage

A positive whole number of the stage representing male recruits. Ignored if NULL.

proportion_female

A number between 0 and 1 indicating the proportion of recruits that are female.

Value

A birth process matrix.

Examples

bbs_matrix_birth(c(0, 0, 0.2, 0, 0.25, 0)) %*% rep(100, 6)
#>       [,1]
#> [1,] 122.5
#> [2,] 100.0
#> [3,] 100.0
#> [4,] 100.0
#> [5,] 100.0
#> [6,] 100.0