Skip to contents

Applies the movement matrix several times in order to obtain the equilibrium spatial distribution of a movement matrix. Not used in the model but useful for reporting.

Usage

calc_eqdist(x, nr = dim(x)[2], start = rep(1/nr, nr), nit = 20)

Arguments

x

Movement matrix, a square matrix with rows corresponding to origin (sum to 1), and columns corresponding to destination

nr

Number of regions

start

The initial distribution. Vector of length nr

nit

Integer, the number of times the movement matrix will be applied

Value

Numeric vector of length nr