[R] Question about simple.median.test
Peter Ehlers
ehlers at ucalgary.ca
Thu Apr 8 14:59:21 CEST 2010
On 2010-04-08 4:52, Uwe Dippel wrote:
> I am studying "Using R for Introductory Statistics" and find it in
> general very useful. At present, I am stumbling over the function
> simple.median.test.
>
> > x
> [1] 12.8 3.5 2.9 9.4 8.7 0.7 0.2 2.8 1.9 2.8 3.1 15.8
> > simple.median.test (x,median=5)
> [1] 0.3876953
> > simple.median.test (x,median=10)
> [1] 0.03857422
> until here it is identical to the document. Then I played for myself:
> > simple.median.test (x,median=3)
> [1] 1.225586
> The result is >1 here. Is my interpretation wrong, that the result is a
> probability?
That looks like a bug in simple.median.test, due to simply
doubling the one-sided p-value.
-Peter Ehlers
>
> Uwe
>
> ______________________________________________
> 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.
>
>
--
Peter Ehlers
University of Calgary
More information about the R-help
mailing list