I am trying to use the stoch.projection function in the Popbio package in R.

Here it is:

stoch.projection(matrices, n0, tmax = 50, nreps = 5000, prob = NULL,

nmax = NULL, sumweight = rep(1, length(n0)), verbose=FALSE).

For some reason I cannot understand, I get an error message if I enter any value for nmax (to cap the population size at a given number of individuals, i.e., density dependence). I assumed it should just be nmax = 100, but it doesn't work.

Does anyone know how to do this?

Similar questions and discussions