Re: [R] Wilcoxon Rank test of Package Coin

From: Henric Nilsson <henric.nilsson_at_statisticon.se>
Date: Sun 01 Oct 2006 - 12:29:28 GMT

Jue.Wang2@sanofi-aventis.com wrote:

> Hi,
>
> I am running the following example which can be found on page 12 of
> the pdf file of COIN package
>
> wt<-wilcox_test(pd~age,data=water_transfer,distribution="exact",
> conf.int=TRUE)
>
> "wt" actually contains the estimate of difference in location and the
> confidence interval of it. I am just wondering how can I extract
> these values? From the examples, I understand that the Wilcoxon
> statistic can be extracted as statitic(wt,"linear") and the exact
> two-sides p-value can be extracted as pvalue(wt)
>
> But I haven't been able to find the correct function to extract the
> estimates of difference median of y-x) and the confidence interval of
> this estimates.

Take a look at the help page for `wilcox_test', where it's clearly spelled out in the `Value:' section that "...Confidence intervals can be extracted by 'confint'."

 > confint(wt)
95 percent confidence interval:
  -0.76 0.15
sample estimates:
difference in location

                 -0.305

> Shall I go back to the package ExactRankTest? I do
> know how to extracted these values from function wilcox.exact there.

Compared to `coin', the `exactRankTests' package is very limited in function.

HTH,
Henric

>
> Thank you
>
>
> Jue Wang, Biostatistician Contracted Position for Preclinical &
> Research Biostatistics PrO Unlimited (908) 231-3022
>
> ______________________________________________
> R-help@stat.math.ethz.ch 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.
>



R-help@stat.math.ethz.ch 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. Received on Sun Oct 01 22:46:10 2006

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Sun 01 Oct 2006 - 13:30:07 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.