Last chance! 50% off unlimited learning
Sale ends in
is.matrix_irreducible(A)
TRUE
(for an irreducible matrix) or FALSE
(for a reducible matrix).
is.matrix_irreducible
works on the premise that a matrix is irreducible if and only if
(I+A) raised to the power of s-1 is positive, where I is the identity matrix of the same
dimension as A
and s is the dimension of A (see Caswell 2001).
is.matrix_primitive
, is.matrix_ergodic
.
# Create a 3x3 irreducible PPM
A <- matrix(c(0,1,2,0.5,0.1,0,0,0.6,0.6), byrow=TRUE, ncol=3)
A
# Diagnose reducibility
is.matrix_irreducible(A)
# Create a 3x3 reducible PPM
B<-A
B[3,2] <- 0
B
# Diagnose reducibility
is.matrix_irreducible(B)
Run the code above in your browser using DataLab