Hello,
We are running a multistate robust model, with three mass class strata (stratum 1, stratum 2, stratum 3) and four capture occasions. t1 and t2 occur in spring and fall of 2008, and t3 and t4 occur in spring and fall of 2009. We would like to model Psi as (~-1+stratum:tostratum*time - time), but when we did so, we noticed that many of the Beta coefficients had either very high standard errors, or SE = 0. We used transition.pairs to examine the data, and found that some transitions did not occur in all the time periods (see below).
#Time 1
. 1 2 3
1 184 34 18
2 1 302 37
3 0 0 337
#Time 2
. 1 2 3
1 431 4 2
2 27 531 8
3 12 58 436
#Time 3
. 1 2 3
1 1022 97 11
2 54 1181 17
3 15 58 361
#Time4
. 1 2 3
1 702 77 8
2 55 907 12
3 2 25 216
To account for this, we tried to fix transitions that did not occur in specific time periods to 0. We also considered fixing transitions that occurred <2 times to 0.
fromstr=as.character(pdoge.ddl$Psi$stratum); tostr=as.character(pdoge.ddl$Psi$tostratum);
indices.3to1t1=which(fromstr %in% c('3') & tostr %in% c('1') & pdoge.ddl$Psi$Time == 0)
indices.3to2t1=which(fromstr %in% c('3') & tostr %in% c('2') & pdoge.ddl$Psi$Time == 0)
indices.2to1t1=which(fromstr %in% c('2') & tostr %in% c('1') & pdoge.ddl$Psi$Time == 0)
indices.1to3t2=which(fromstr %in% c('1') & tostr %in% c('3') & pdoge.ddl$Psi$Time == 3)
indices.3to1t4=which(fromstr %in% c('3') & tostr %in% c('1') & pdoge.ddl$Psi$Time == 15)
...
Psi.fixedt=list(formula=~-1+stratum:tostratum*time-time,fixed=list(
index=c(indices.3to1t1,indices.3to2t1,indices.2to1t1,indices.1to3t2,indices.3to1t4), value=c(rep(0,length(indices.3to1t1)),rep(0,length(indices.3to2t1)),rep(0,length(indices.2to1t1)),
rep(0,length(indices.1to3t2)),rep(0,length(indices.3to1t4))))) #transitions fixed to 0
Our expectation was that we would not get Beta coefficients for the transitions that are fixed, and that the real parameter estimates would be set to 0. This occurred for the two transitions in Time == 3 and Time ==15, but we have Beta coefficients with SE=0 for each of the fixed transitions in Time==0 even though the corresponding real parameter estimates were set to 0.
In an attempt to understand what was happening, we tried fixing the parameters as above but without a Time component (e.g. indices.3to1=which(fromstr %in% c('3') & tostr %in% c('1')). When we did this, there were no Beta coefficients for the fixed transitions in the output, and the corresponding real parameter estimates were set to 0. This lead us to believe that there is something wrong with how we have coded the time periods.
Does anyone have any suggestions about what might be going on, and how we can correct it?
Thank you!