This function produces a diagonal matrix of survival (S.) values. in winter (S.w) for males (.m) and females (.f) in both good (._g) and poor (._p) habitat

eq02buildW1Mat(S.w.mg = 0.8, S.w.mp = 0.8, S.w.fg = 0.8, S.w.fp = 0.8)

Arguments

S.w.mg

Survival (S) in the winter (w) of males (m) in good (g) habitat

S.w.mp

Winter survival of males in poor (p) habitat.

S.w.fg

Winter survival of female birds (f) in good habitat

S.w.fp

Winter survival of females in poor habitat

Value

S.w (W1) matrix of winter (w) survival probabilities by sex and winter habitat

Details

TODO(): I call the matrix returned by the function S.w; why not W1?

References

Runge, MC and PP Marra. 2004. Modeling seasonal interactions in the population dynamics of migratory birds. In Greenberg, R and PP Marra, eds. Birds of two worlds. Johns Hopkins University Press, Baltimore.

Examples

# Default winter survival matrix
eq02buildW1Mat()
#>      [,1] [,2] [,3] [,4]
#> [1,]  0.8  0.0  0.0  0.0
#> [2,]  0.0  0.8  0.0  0.0
#> [3,]  0.0  0.0  0.8  0.0
#> [4,]  0.0  0.0  0.0  0.8

# Errors thrown in values exceed 1 or are less than 0
eq02buildW1Mat(S.w.mg = 10)
#> Warning: Matrix contains invalied value
#>      [,1] [,2] [,3] [,4]
#> [1,]   10  0.0  0.0  0.0
#> [2,]    0  0.8  0.0  0.0
#> [3,]    0  0.0  0.8  0.0
#> [4,]    0  0.0  0.0  0.8