I have a problem that occurs before running models with RMark, during the PIM structures are compiled.
I wish to run multi-state models with dead recovery (more precisely a 'known fate model') which is normaly quite easy to do thanks to RMark. I try to estimate a weekly survival of birds after they are release in the wild. These birds were monitored by GPS during 72 weeks. To estimate weekly survivals, I made encounter histories which looks like that (here for one bird) :
000000C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0B0B0B0B0B0C0C0C0C0C0C0C0B0B0B0B0B0B0B0B0B0B0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0C0B0C0C0C0C0C0C0C0C0C0C100;
In my model, I have four parameters to estimate :
S: survival
p: capture probability, fixed to 1
Psi :transition probability between 4 types of habitat suitability (A,B,C,D)
r : recovery rate, supposed to be constant
I have a problem, even when I fit a constant estimate for all parameters. This problem occur during the build of Psi triangular matrix. Indeed, the triangular matrices of Psi assume each real parameters for each triangular matrix to be unique. In my case, this number exceed 100000 and 'mark' or 'Rmark' transform this number into 1E+05
Then I have this error :
ERROR -- Error with integer read of 1e+05
STOP ERROR
Error in extract.mark.output(out, model, adjust, realvcv, vcvfile) :
MARK did not run properly. If error message was not shown, re-run MARK with invisible=FALSE
This problem does not occur for 1000 or 10000.I tried to use the arguments ' remove.unused =TRUE' with make.design.data function but this lead to an other and more obscur error
Error in pim[[i]][[1]]
Is someone has already experienced this problem and has found a solution
Thanks in advance for the reply
Stephane