sim_transitions: Simulate population projection matrices

Description Usage Arguments Value

View source: R/sim_funcs.R

Description

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

Usage

1
2
3
4
5
6
7
8
9
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 matrix of the prior parameter for each stage. Impossible stage combinations marked with NA_real_.

beta

A matrix of the prior parameter for each stage. Impossible stage combinations marked with 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.


atyre2/raretrans documentation built on Sept. 28, 2020, 8:55 p.m.