Re: [R] Should help of estimate in t.test be corrected?

2023-04-03 Thread Samuel Granjeaud IR/Inserm

Hi

Thanks for your feedback. I didn't think about that.

Still, the mean difference is computed for paired, not because there are 
two samples. IMHO, the help should be updated.


Best,
Samuel

Le 2023-04-03 à 12:10, PIKAL Petr a écrit :

Hi

You need to use paired option


t.test(x=0:4, y=sample(5:9), paired=TRUE)$estimate

mean difference
  -5

Cheers
Petr


-Original Message-
From: R-help  On Behalf Of Samuel Granjeaud
IR/Inserm
Sent: Sunday, April 2, 2023 11:39 PM
To: r-help@r-project.org
Subject: [R] Should help of estimate in t.test be corrected?

Hi,

Not important, but IMHO the estimate component of the t.test holds an
estimate of mean of each group, never a difference. The doc says
"estimatethe estimated mean or difference in means depending on whether
it
was a one-sample test or a two-sample test."

  > t.test(0:4)$estimate
mean of x
  2
  > t.test(0:4, 5:9)$estimate
mean of x mean of y
  2 7

Best,
Samuel

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.


__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.


[R] Should help of estimate in t.test be corrected?

2023-04-03 Thread Samuel Granjeaud IR/Inserm

Hi,

Not important, but IMHO the estimate component of the t.test holds an 
estimate of mean of each group, never a difference. The doc says 
"estimate    the estimated mean or difference in means depending on 
whether it was a one-sample test or a two-sample test."


> t.test(0:4)$estimate
mean of x
    2
> t.test(0:4, 5:9)$estimate
mean of x mean of y
    2 7

Best,
Samuel

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.


Re: [R] Why R >= 4.1 warns about installing Rtools on Windows?

2022-09-28 Thread Samuel Granjeaud

Hi,

Martin M. helped me focussing the context of my question.  The main 
result of my trials (various R4.x installations) after his mail is that 
the warning is issued when using *devtools* to install a package *from 
github*. When installing a package with install.packages(), no warning.


The warning looks like:

devtools::install_github("i-cyto/cytoBatchNorm")
WARNING: Rtools is required to build R packages, but no version of 
Rtools compatible with R 4.2.1 was found. (Only the following 
incompatible version(s) of Rtools were found: 4.0)
Please download and install Rtools 4.2 from 
https://cran.r-project.org/bin/windows/Rtools/ or 
https://www.r-project.org/nosvn/winutf8/ucrt3/.

Downloading GitHub repo i-cyto/cytoBatchNorm@HEAD
...

I don't think there is a need of Rtools. Let me know if you think there 
is a need of Rtools being installed prior to installing a pure R 
package. From your answers, I may contact the maintainer of devtools.


Thanks for reading.

Bonne journée,
Samuel

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.


[R] Why R >= 4.1 warns about installing Rtools on Windows?

2022-09-27 Thread Samuel Granjeaud

Hi,

I don't understand why Rtoosl seems to be required even if a package is 
pure R. For sure, this is just a warning, but it frightens new comers. 
So, why encouraging people add stuff that will be probably unneeded?


Have a nice,
Samuel

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.


[R] stats:: spline's method could not be monoH.FC

2020-04-30 Thread Samuel Granjeaud IR/Inserm
Hi,

I have just noticed that the argument method of the spline function of 
the stats package does not allow to specify monoH.FC although the 
documentation tells it should be possible.

I know how to program a workaround. This post intends to alert the 
maintainers.

Stay safe,
Samuel
[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.


Re: [R] Identify does sort the locations

2018-02-15 Thread Samuel GRANJEAUD IR/INSERM

Thanks Paul. I have started using locator().

I also found the gatepoints package that sounds interestering.
https://CRAN.R-project.org/package=gatepoints

Happy R,
Samuel

On 15-02-2018 21:50, Paul Murrell wrote:

Hi

Sorry, I think this has always been the behaviour (and the
documentation has always been wrong).

Using locator() yourself could be a workaround (with a little more
effort required to determine the closest data point).

Paul


__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.


Re: [R] Identify does sort the locations

2018-02-15 Thread Samuel GRANJEAUD IR/INSERM

Hi Paul,

Thanks for your answer. I am wondering if in the previous versions, 
let's say 2.1x, the data were in the selection order... Let me know if 
there a R fonction taht I can code. Do you think I should use locator 
function and match points on my own?


Best,
Samuel

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.


[R] Identify does sort the locations

2018-02-15 Thread Samuel GRANJEAUD IR/INSERM

Hi,

Using identify function, I think I should get the index of the selected 
points in the order I clicked them. This is what I read in the help. But 
I feel they are ordered. Please let me know what I missed.


In the following example, I clicked on the points labelled 7, 5 and 1, 
but I get 1, 5, 7 as output.


set.seed(0); x = rnorm(10); y = rnorm(10); plot(x,y); text(x, y, 
seq(x)); sel = identify(x,y); sel

[1] 1 5 7

Any help appreciated,
Samuel

R version 3.4.3 (2017-11-30)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1

Matrix products: default

locale:
[1] LC_COLLATE=English_United Kingdom.1252  LC_CTYPE=English_United 
Kingdom.1252

[3] LC_MONETARY=English_United Kingdom.1252 LC_NUMERIC=C
[5] LC_TIME=English_United Kingdom.1252

attached base packages:
[1] stats graphics  grDevices utils datasets  methods   base

loaded via a namespace (and not attached):
[1] compiler_3.4.3

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
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.