[R] confidence intervals for the difference between group means

Prof. Dr. Matthias Kohl M@tth|@@@Koh| @end|ng |rom @t@m@t@@de
Tue Aug 4 16:22:03 CEST 2020


you could try:

library(MKinfer)
meanDiffCI(a, b, boot = TRUE)

Best
Matthias

Am 04.08.20 um 16:08 schrieb varin sacha via R-help:
> Dear R-experts,
> 
> Using the bootES package I can easily calculate the bootstrap confidence intervals of the means like in the toy example here below. Now, I am looking for the confidence intervals for the difference between group means. In my case, the point estimate of the mean difference is 64.4. I am looking at the 95% confidence intervals around this point estimate (64.4).
> 
> Many thanks for your response.
> 
> ############
> library(bootES)
> a<-c(523,435,478,567,654)
> b<-c(423,523,421,467,501)
> bootES(a)
> bootES(b)
> ############
> 
> ______________________________________________
> R-help using 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.
> 

-- 
Prof. Dr. Matthias Kohl
www.stamats.de



More information about the R-help mailing list