isPrimitive

0th

Percentile

Determine primitivity of a matrix

Determine whether a matrix is primitive or imprimitive

Usage
isPrimitive(A)
Arguments
A

a square, non-negative numeric matrix of any dimension.

Details

isPrimitive works on the premise that a matrix A is primitive if A^(s^2-(2*s)+2) is positive, where s is the dimension of A (Caswell 2001).

Value

TRUE (for an primitive matrix) or FALSE (for an imprimitive matrix).

References

  • Caswell (2001) matrix Population Models, 2nd. ed. Sinauer.

See Also

Other PerronFrobeniusDiagnostics: isErgodic, isIrreducible

Aliases
  • isPrimitive
Examples
# NOT RUN {
  # Create a 3x3 primitive PPM
  ( A <- matrix(c(0,1,2,0.5,0,0,0,0.6,0), byrow=TRUE, ncol=3) )

  # Diagnose primitivity
  isPrimitive(A)

  # Create a 3x3 imprimitive PPM
  B<-A; B[1,2] <- 0; B

  # Diagnose primitivity
  isPrimitive(B)

# }
Documentation reproduced from package popdemo, version 1.3-0, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.