Re: [R] MSM package and qmatrix

2009-08-26 Thread Ross Culloch
Hi Peter, Thanks for the advice! That has done the trick, much appreciated. Ross Peter Adamson wrote: > > Hi Ross, > > For an eleven state model you could define transitions as follows: > > transitions_allowed <- matrix(c( > 0,1,1,1,1,1,1,1,1,1,1, >

Re: [R] MSM package and qmatrix

2009-08-25 Thread Peter Adamson
Hi Ross, For an eleven state model you could define transitions as follows: transitions_allowed <- matrix(c( 0,1,1,1,1,1,1,1,1,1,1, 1,0,1,1,1,1,1,1,1,1,1, 1,1,0,1,1,1,1,1,1,1,1, 1,1,1,0,1,1,1,

[R] MSM package and qmatrix

2009-08-03 Thread Ross Culloch
Hi R-helpers, I am having a problem understanding how to construct the qmatrix, i have read the help menu for msm but I am still a bit lost. Below is an example of one of my transition matrices: statetable.msm(BEH, ID, data = A1) to from 1 2 3 4 5 23 200 201 203 999 1 86 11 2 20