Hi Everyone, I ran the same code in R and in R-studio, but got two different results. Does anybody know why this is occurring, and if there is a fix for this? and which is the "correct" program to use ? Some information about the code I am running: I am running the fisher test and it seems that the p-values are similar but not same for example, for an event A the p-value coming from the R-Studio is around 10^-58 and with R it is 10^-135. Also, I am running the Rstudio on Mac and R through linux server. They both are 64 bit. I am finding it for the first time and I am really surprised by its weirdness. -Best, Aayush Raman [[alternative HTML version deleted]]
Reproducible code please. (I'm quite surprised this would happen -- are you sure there's no stochastic element to your calculation that explains the differences?) But the canonical answer is the CLI R and the CRAN binaries. Michael On Fri, Mar 9, 2012 at 7:11 AM, Aayush Raman <ayushraman at gmail.com> wrote:> Hi Everyone, > > I ran the same code in R and in R-studio, but got two different results. > Does anybody know why this is occurring, and if there is a fix for this? > and which is the "correct" program to use ? > > Some information about the code I am running: I am running the fisher test > and it seems that the p-values are similar but not same for example, for an > event A the p-value coming from the R-Studio is around 10^-58 and with R it > is 10^-135. > > Also, I am running the Rstudio on Mac and R through linux server. They both > are 64 bit. I am finding it for the first time and I am really surprised by > its weirdness. > > -Best, > Aayush Raman > > ? ? ? ?[[alternative HTML version deleted]] > > ______________________________________________ > R-help at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.
First, be sure your R and the R associated with Rstudio are the same R
versions. In Rstudio, check Tools -> Options -> R version. It looks as
if your R-studio is running the 32-bit version of R.
Aayush Raman <ayushraman@gmail.com>
Sent by: r-help-bounces@r-project.org
03/09/2012 07:11 AM
To
r-help@r-project.org
cc
Subject
[R] R versus R Studio output differences
Hi Everyone,
I ran the same code in R and in R-studio, but got two different results.
Does anybody know why this is occurring, and if there is a fix for this?
and which is the "correct" program to use ?
Some information about the code I am running: I am running the fisher test
and it seems that the p-values are similar but not same for example, for
an
event A the p-value coming from the R-Studio is around 10^-58 and with R
it
is 10^-135.
Also, I am running the Rstudio on Mac and R through linux server. They
both
are 64 bit. I am finding it for the first time and I am really surprised
by
its weirdness.
-Best,
Aayush Raman
[[alternative HTML version deleted]]
______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
[[alternative HTML version deleted]]