R/stationdistTPM.R

stationdistTPM <-
function(M)  {
  eigenprob <- eigen(t(M))
  temp <- which(round(eigenprob$values,1)==1)
  stationdist <- eigenprob$vectors[,temp]
  stationdist <- stationdist/sum(stationdist)
  return(stationdist)
}

Try the ACSWR package in your browser

Any scripts or data that you put into this service are public.

ACSWR documentation built on May 2, 2019, 6:53 a.m.