Error with integer read of 1e+05

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

Error with integer read of 1e+05

Postby angieluis » Thu Jun 09, 2016 11:55 am

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!!
angieluis
 
Posts: 6
Joined: Mon May 21, 2007 3:48 pm

Re: Error with integer read of 1e+05

Postby cooch » Thu Jun 09, 2016 12:04 pm

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.
cooch
 
Posts: 1652
Joined: Thu May 15, 2003 4:11 pm
Location: Cornell University

Re: Error with integer read of 1e+05

Postby jlaake » Thu Jun 09, 2016 12:12 pm

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.
jlaake
 
Posts: 1479
Joined: Fri May 12, 2006 12:50 pm
Location: Escondido, CA


Return to RMark

Who is online

Users browsing this forum: No registered users and 0 guests

cron