Page 1 of 1

Error with integer read of 1e+05

PostPosted: Thu Jun 09, 2016 11:55 am
by angieluis
I'm using Rmark multistate models, and no models with my current data set will run. The error message in the output file says:
"ERROR -- Error with integer read of 1e+05"

It's at integer 100000 of 'input' in the output file. My guess is that R is turning '100000' to '1e+05' and Mark doesn't know what that means (just a guess). I don't know what I can do about it.

The same models have worked successfully with other data sets, but this may be a larger data set than previous ones.

Any suggestions?
Thanks!!

Re: Error with integer read of 1e+05

PostPosted: Thu Jun 09, 2016 12:04 pm
by cooch
angieluis wrote:I'm using Rmark multistate models, and no models with my current data set will run. The error message in the output file says:
"ERROR -- Error with integer read of 1e+05"

It's at integer 100000 of 'input' in the output file. My guess is that R is turning '100000' to '1e+05' and Mark doesn't know what that means (just a guess). I don't know what I can do about it.

The same models have worked successfully with other data sets, but this may be a larger data set than previous ones.

Any suggestions?
Thanks!!


Sure -- simply force R not to do silly things. ;-) No idea if that is in fact the root-cause, but easy enough to tweak R.

Couple of options:

> options("scipen"=15) # set high penalty for scientific display

or you can use integers which don't get printed in scientific notation. You can specify that your number is an integer by putting an "L" behind it, or doing as.integer.

Re: Error with integer read of 1e+05

PostPosted: Thu Jun 09, 2016 12:12 pm
by jlaake
This has been asked and answered before on this forum. Please search before you post. That is the reason for the forum which archives the questions and answers. A search of "Error with integer read of 1e+05" on this forum would have brought up the solution.