Page 1 of 1

error message when using mark-resight models

PostPosted: Thu Oct 27, 2011 9:54 pm
by roche042
Hello,

I am having some trouble getting a mark-resight LogitNormalMR model to run. I am having no trouble with the process.data command or the make.design.data command, but when I use the mark() command I get the following error:

Error in npar:(npar + ncol - 1) : NA/NaN argument

I have checked the C index of the MARK book and the workshop notes but can't find reference to this error. I apologize if I have missed it in my search. In addition, I seem to have success running similar models in MARK... so I don't 'think' it is the capture history itself. But I have been very wrong before :-)

Thanks in advance,

erin

I am using the following data and code:

the capture history i labeled as 'ch' and was made up of the following (see below):
ch
00010
00000
01000
00000
00000
00000
01010
00010
01000
00000
00000
00000
00000
01000
00010
00000
00001
01011
00000
00000
01000

Unmarked_seen <- c(5)
Marked_unidentified <- c(2,0,0,0,0)
time_intervals <- c(0,0,0,0)

sim1 <- process.data(ch,model="LogitNormalMR",counts=list("Unmarked seen" = Unmarked_seen,"Marked Unidentified" = Marked_unidentified),time.intervals=time_intervals)

ddl<- make.design.data(sim1)

mod <- mark(sim1,ddl)

Re: error message when using mark-resight models

PostPosted: Fri Oct 28, 2011 5:47 pm
by jlaake
Erin and I resolved this off-list. There was a problem with pim creation when a multi-session model had only one session. The patched version is at
https://github.com/downloads/jlaake/RMark/RMark_2.0.9.zip

--jeff