sim_transition generates a list of simulated population projection matrices from the provided parameters and prior distributions.

sim_transitions(TF, N, P = NULL, alpha = 1e-05, beta = 1e-05,
  priorweight = -1, samples = 1)

Arguments

TF

A list of two matrices, T and F, as ouput by projection.matrix.

N

A vector of observed stages at start of transition.

P

A matrix of the priors for each column. Defaults to uniform.

alpha

A vector of the prior parameter for each stage. Stages that can't reproduce are NA_real_

beta

A vector of the prior parameter for each stage. Stages that can't reproduce are NA_real_

priorweight

total weight for each column of prior as a percentage of sample size or 1 if negative

samples

The number of matrices to return.

Value

Always returns a list.