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
> 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
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
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
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
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
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
7 matches
Mail list logo