leslie: Create Leslie population model matrix
Description
N by N matrix from Leslie population model with average birth and survival rates.
Usage
leslie(a, b = NULL, sparse = FALSE)
Value
N by N Leslie population model matrix
Arguments
- a
average birth numbers (first row)
- b
survival rates (subdiagonal)
- sparse
whether to return a sparse matrix