R/survival-matrix.R
bbs_matrix_survival_period.Rd
Create survival matrix for each year and period.
bbs_matrix_survival_period(survival)
An array of survival process matrices with dimensions stage, stage, year, period.
survival_rates <- bbs_survival(logit(c(0.94, 0.98)), nyear = 2, nperiod_within_year = 1)
bbs_matrix_survival_period(survival_rates$eSurvival)
#> , , 1, 1
#>
#> [,1] [,2]
#> [1,] 0.94 0.00
#> [2,] 0.00 0.98
#>
#> , , 2, 1
#>
#> [,1] [,2]
#> [1,] 0.94 0.00
#> [2,] 0.00 0.98
#>