M6201:MATH sqrt DOMAIN error

posts related to the RMark library, which may not be of general interest to users of 'classic' MARK

M6201:MATH sqrt DOMAIN error

Postby jwalrath » Wed Oct 30, 2013 12:24 pm

I am running RMark to estimate abundance using a closed model with the formulas "models" listed below. I have three other datasets that seem to work fine (without error messages). This dataset runs in RMark but after a few seconds an run-time error message pops up ("Image-mark.exe, PC-006B77C9, Routine-unknown, Line-unknown, Source-unknown"). I click okay and it creates the file to upload into Mark, however a model is missing (i.e., p.time.c). I am not sure how to correct this as the dataset is sound and the script works with the other datasets. Any assistance would be great. I would be happen up upload all my script and data file if necessary. Thank you.

Error in if (x4 > x2) { : argument is of length zero #error message that appears in the R console.

p.dot=list(formula=~1+c,share=TRUE)
p.time=list(formula=~time,share=TRUE)
p.dot.c=list(formula=~1,share=TRUE)
p.time.c=list(formula=~time+c,share=TRUE)
N.dot=list(formula=~1)
jwalrath
 
Posts: 2
Joined: Tue Oct 29, 2013 6:07 pm

Re: M6201:MATH sqrt DOMAIN error

Postby jlaake » Wed Oct 30, 2013 12:31 pm

Try running the script without that model and see if you get the error with that data. Then run the script with only that model and look in your directory for the most recent output file (markxxxx.out where xxx is some value. Any errors from MARK will be in there. If this doesn't help you track it down, send me the R script and that data set via email and I'll look into it.

--jeff
jlaake
 
Posts: 1480
Joined: Fri May 12, 2006 12:50 pm
Location: Escondido, CA

Re: M6201:MATH sqrt DOMAIN error

Postby jwalrath » Wed Oct 30, 2013 1:44 pm

My data doesn't seem to fit the model throwing the error as it can't converge. I went back through and changed the model to be more representative of the data.
jwalrath
 
Posts: 2
Joined: Tue Oct 29, 2013 6:07 pm


Return to RMark

Who is online

Users browsing this forum: Bing [Bot] and 3 guests