Re: [R] nth step transition matrices

2008-04-22 Thread Brad Lukoskie
"mod" in c++? On Apr 22, 2008, at 7:40 PM, [EMAIL PROTECTED] wrote: >> From: Brad Lukoskie <[EMAIL PROTECTED]> >> Date: 2008/04/22 Tue PM 06:49:14 CDT >> To: r-help@r-project.org >> Subject: [R] nth step transition matrices > > The list isn'

[R] nth step transition matrices

2008-04-22 Thread Brad Lukoskie
Hello, I have a question in regards to markov chains and transition probabilities. I am trying to figure out a way to calculate the "kth-step transition matrix" of a given matrix. Say for example I have a single step 2x2 matrix: 1 2 P= 1 .95 .05 2 .01. 99 If I were to