Create survival matrix for each year and period.

bbs_matrix_survival_period(survival)

Arguments

survival

An array of the survival rates with dimensions period, year and stage. Period represents any subdivision of a year (i.e., week, month, season).

Value

An array of survival process matrices with dimensions stage, stage, year, period.

Examples

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
#>