Re: [R] stats on transitions from one state to another

2012-02-21 Thread Murali.Menon
2, and compute stats on them. Is there an easier way? Thanks, Murali -Original Message- From: David Winsemius [mailto:dwinsem...@comcast.net] Sent: 20 February 2012 15:31 To: Menon Murali Cc: r-help@r-project.org Subject: Re: [R] stats on transitions from one state to another On F

Re: [R] stats on transitions from one state to another

2012-02-20 Thread Berend Hasselman
On 20-02-2012, at 16:11, wrote: > Folks, > > I'm trying to get stats from a matrix for each transition from one state to > another. > > I have a matrix x as below. > > structure(c(0, 2, 2, 2, 0, 0, 0, 1, 1, 1, 1, 2, 2, 1, 1, 1, 0, > 0, 2, 2, 0.21, -0.57, -0.59, 0.16, -1.62, 0.18, -0.81, -

Re: [R] stats on transitions from one state to another

2012-02-20 Thread David Winsemius
On Feb 20, 2012, at 10:11 AM, wrote: Folks, I'm trying to get stats from a matrix for each transition from one state to another. I have a matrix x as below. structure(c(0, 2, 2, 2, 0, 0, 0, 1, 1, 1, 1, 2, 2, 1, 1, 1, 0, 0, 2, 2, 0.21, -0.57, -0.59, 0.16, -1.62, 0.18, -0.81, -0.19, -0.76,

[R] stats on transitions from one state to another

2012-02-20 Thread Murali.Menon
Folks, I'm trying to get stats from a matrix for each transition from one state to another. I have a matrix x as below. structure(c(0, 2, 2, 2, 0, 0, 0, 1, 1, 1, 1, 2, 2, 1, 1, 1, 0, 0, 2, 2, 0.21, -0.57, -0.59, 0.16, -1.62, 0.18, -0.81, -0.19, -0.76, 0.74, -1.51, 2.79, 0.41, 1.63, -0.86, -0.