Page 1 of 1

M6201:MATH sqrt DOMAIN error

PostPosted: Wed Oct 30, 2013 12:24 pm
by jwalrath
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)

Re: M6201:MATH sqrt DOMAIN error

PostPosted: Wed Oct 30, 2013 12:31 pm
by jlaake
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

Re: M6201:MATH sqrt DOMAIN error

PostPosted: Wed Oct 30, 2013 1:44 pm
by jwalrath
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.