Computes scalar mobility indices summarizing how much movement a transition
probability matrix implies, following Formby, Smith, and Zheng (2004) and
mirroring giddy.mobility.markov_mobility() in PySAL giddy.
Usage
mobility_index(
x,
measure = c("prais", "determinant", "eigen", "bartholomew1", "bartholomew2"),
initial = NULL
)Arguments
- x
A
grd_markovobject or a square transition probability matrix.- measure
Character vector of indices to compute. Any of:
"prais": the Prais–Shorrocks trace index,(k - trace(P)) / (k - 1)."determinant":1 - |det(P)|."eigen": the Sommers–Conlisk index, one minus the modulus of the second-largest eigenvalue ofP."bartholomew1":(k - k * sum(initial * diag(P))) / (k - 1)."bartholomew2": the expected number of class boundaries crossed in one transition,sum(initial[i] * P[i, j] * |i - j|) / (k - 1). Class distance uses the class ordering, so classes are assumed ordinal.
- initial
Optional initial distribution over classes used by the Bartholomew indices. Defaults to the uniform distribution, matching
giddy.