By "compound" I mean the transition matrix satisfies the Markov property,namely I have two columns s_t
and s_t+k
that represent state of each individual in two period t
and t+k
respectively.
What I want is to find the matrix M that
s_t+k = M^k * s_t
so that matrix M
satisfies the Markov property.
My default working language is Stata, in which commands like tab
, svy:tab
or xttran
can generate one period transition matrices, but these matrices do not necessarily satisfy the Markov property. So I wonder how to achieve my goal in Stata or other common language like R or Python.
PS:This problem raise from a paper which research many countries' GDP_per_capita transition dynamics from 1960 to 2010. Say, at the beginning of each decades, we group all countries into 5 groups (from 1:extremely poor country to 5: high-income country), so we have a distribution of countries with 5 states. It's easy if I simply estimate the decade-to-decade transition matrix using markovchain class. However, the author claim that (page11, footnote4)
“The decade average transition matrix is estimated based on the 5-decade transition matrices from 1960 to 2010 by employing a numerical optimization program. Instead of taking the simple average for the five transition matrices (which suffers from Jensen’s Inequality), we estimate a transition matrix that can give us an exact 5 decade duration transition matrix (entry in 1960 and exit in 2010) by taking its power 5.”