[R] Fwd: Re: .Random.seed for the Mersenne Twister

2020-01-09 Thread Jeff Newmiller
Forgot to cc list. Original Message From: Jeff Newmiller Sent: January 9, 2020 2:10:00 PM PST To: Luca Passalacqua Subject: Re: [R] .Random.seed for the Mersenne Twister No information is lost. Thirty-two "one" bits is equally valid when viewed as a -1L in R or as 4294967295

Re: [R] issue with Rcmdr

2020-01-09 Thread Norm Matloff
> Message: 14 > Date: Wed, 8 Jan 2020 09:59:56 -0800 > From: Bert Gunter > To: Norm Matloff > Cc: R-help > Subject: Re: [R] issue with Rcmdr > ... and even more generally, is generally misleading. ;-) > (search "problems with R^2" or similar for why). > Bert Gunter I was addressing the

Re: [R] .Random.seed for the Mersenne Twister

2020-01-09 Thread Uwe Ligges
Exactly, from ?.Random.seed: "In the underlying C, .Random.seed[-1] is unsigned; therefore in R .Random.seed[-1] can be negative, due to the representation of an unsigned integer by a signed integer. " and "It can be saved and restored, but should not be altered by the user. " Best, Uwe Lig

Re: [R] editing plot

2020-01-09 Thread Ana Marija
HI Rui, Thank you so much for getting back to me! I did implement your idea (see attach): ax.11.text <- element_text(size = 10) ay.11.text <- element_text(size = 10) p<-ggplot(data=toplot, aes(x=cat, y=props)) + geom_bar(stat="identity",width=0.5, fill="steelblue")+ geom_errorbar(aes(ymin=pro

Re: [R] .Random.seed for the Mersenne Twister

2020-01-09 Thread Jeff Newmiller
I am no expert on this specific algorithm, but there is no "32-bit unsigned integer" type in R. Presumably the interpretation of those negative numbers in the C code is as if they were unsigned while R presents them as if they were signed because it cannot do otherwise. AFAIK you need to use se

Re: [R] R-help Digest, Vol 203, Issue 8

2020-01-09 Thread Helmut Schütz
Dear Hans, r-help-requ...@r-project.org wrote on 2020-01-09 12:00: Date: Wed, 8 Jan 2020 12:09:55 +0100 From: Hans W Borchers To: R help project Subject: [R] Which external functions are called in a package? [Solved] NB: `trapz`, ie. the trapezoidal integration formula, seems to be th

[R] .Random.seed for the Mersenne Twister

2020-01-09 Thread Luca Passalacqua via R-help
Dear R users, inspecting .Random.seed for the Mersenne Twister (MT) I find (many) negative values for the 624 values of the initial state of the generator. It seems to me that this is a bug (an unsigned integer mapped to a signed integer ?), since, to my understanding, the R version of MT should