I am using the robust design occupancy model with initial occupancy, annual colonization (gamma) and annual extinction (epsilon) and a data set containing a large number of years and 550 individual covariates. When I try to run the model psi(.)eps(.)gam(.)p(year), which does not include any of the individual covariates present in the data set, Program Mark returns the error ‘Encounter history was too short for the number of occasions specified’.
I think I have isolated a line in the data set (Site 148) that is generating this error. However, nothing about that line seems unusual or incorrect.
If I restrict the data to just 12 sites (Sites 138-149) the above error is generated. If I delete Site 148 from that set of 12 sites the above error is not generated and the model runs.
If I remove all of the individual covariates from the data set, and restrict myself to the above 12 sites, now including Site 148, without changing any of their capture histories, no error is generated and the model runs.
If I round a subset of the covariate data just for Site 148 no error is generated and the model runs. This rounding removes one decimal place, changes the covariate data from, for example, 5.32 to 5.3.
I started thinking perhaps there is a limit to the number of characters allowed in a line of data. However, the number of characters in the line for Site 148 is the same as for surrounding lines (1534 characters not counting spaces) prior to rounding.
I am also analyzing the same data with RMark and do not obtain this error when using that R package.
Thank you for any suggestions on what might be causing the above error and how to correct it. For now perhaps I could a posteriori apply the rounding solution described above and verify that RMark returns the same estimates. I can provide additional information if that would be helpful.