I am getting an error when running multi-strata models in RMark. I updated to the most recent versions of R 2.13.0, RMark 2.0.1 and Mark_INT.EXE 23/04/2011, MARK.EXE 23/04/2011, which hasn’t resolved the problem. OS: Windows Vista
The data has been modelled successfully in Mark so I am happy that it is set up correctly. The .inp file consists of over 1100 capture histories, with each consisting of 76 capture events. It contains 4 stratum and sex (m/f) as a group. I am able to convert.inp, process.data and make.design.data however when I try to run any model it errors after the model has run for a few moments.
An example of one of my R Codes:
CaptureData=convert.inp("Capture.inp",group.df=data.frame(sex=c("Male","Female")),use.comments=FALSE)
run.mstrata=function()
{
mstrata.processed=process.data(CaptureData,model="Multistrata",groups="sex")
mstrata.ddl=make.design.data(mstrata.processed)
Psi.sex.plus.stratum=list(formula=~sex+stratum)
p.time=list(formula=~time)
S.sex.plus.stratum=list(formula=~sex+stratum)
model.list=create.model.list("Multistrata")
mstrata.results=mark.wrapper(model.list,data=mstrata.processed,ddl=mstrata.ddl)
return(mstrata.results)
}
mstrata.results=run.mstrata()
I get the visual Fortran run-time error:
Forrtl:severe (161) Program Exception- array bounds exceeded
Which then results in the model failing to run and this error in R:
Error in extract.mark.output(out, model, adjust, realvcv)
I’ve looked in the output files and there’s no obvious error message, some model outputs even contain AIC values etc (I can see on the forum that this error has occurred before but not in the same context).
Any suggestions would be greatly appreciated.
Thank you
Jen