Re: [R] From NUM to INT

2016-04-26 Thread André Luis Neves
Hi Bert: I thought in centering Baci variable, but I wouldn`t like to draw a conclusion based on the scaled response variable. On the other hand, if I had to center the explanatory variable, that would be great, but I cannot, as it is a factor. Thanks a lot for your time. I really appreciated yo

Re: [R] From NUM to INT

2016-04-26 Thread Bert Gunter
Inline. -- Bert On Tue, Apr 26, 2016 at 2:25 PM, André Luis Neves wrote: > Ok. I`m trying to run a Poisson glmm with an observation-level random > intercept. But I`m getting the following error for the 'Baci' variable: > > 'Error: (maxstephalfit) PIRLS step-halvings failed to reduce deviance in

Re: [R] From NUM to INT

2016-04-26 Thread André Luis Neves
Ok. I`m trying to run a Poisson glmm with an observation-level random intercept. But I`m getting the following error for the 'Baci' variable: 'Error: (maxstephalfit) PIRLS step-halvings failed to reduce deviance in pwrssUpdate'. I guess this message is because the baci variable is not a an intege

Re: [R] From NUM to INT

2016-04-26 Thread jim holtman
Can you explain why you need them as 'integer', A floating point representation can hold a value upto ~4.5e15 as an "integer" keeping the precision that you might need. Jim Holtman Data Munger Guru What is the problem that you are trying to solve? Tell me what you want to do, not how you want t

Re: [R] From NUM to INT

2016-04-26 Thread Bert Gunter
Please respond to the list. It will be obvious why in a second. That's not my threshhold! -- it's R's. Your numeric integers cannot be exactly represented as integers in R. Period. Maybe there are special packages for extended arithmetic that can do this. but someone else would have to help you th

Re: [R] From NUM to INT

2016-04-26 Thread Jeff Newmiller
That is the "impossible" case, since R integers are 32 bit signed (~2×10^9) even in 64 bit R. You can Google for "R arbitrary precision" and look for packages like Ryacas, bit64 or gmp. However, having such large integers stored as integers would not be necessary for most statistical analyses so

Re: [R] From NUM to INT

2016-04-26 Thread Bert Gunter
No. >From ?as.integer: "Note that current implementations of R use 32-bit integers for integer vectors, so the range of representable integers is restricted to about +/-2*10^9: doubles can hold much larger integers exactly. " Cheers, Bert Bert Gunter "The trouble with having an open mind is t

[R] From NUM to INT

2016-04-26 Thread André Luis Neves
Dear all: I converted the columns (Baci, Meti, Fungii, Protozoai) into integers (using excel) and then imported the data (.txt) into R. Interestingly, the other three variables were loaded as INT, but the 'Baci' one continued as Num. I imported the data using the following command line: X <- rea