[Rd] tests Rin and Rout

Robin Hankin r.hankin at noc.soton.ac.uk
Mon Mar 31 10:37:28 CEST 2008


On 31 Mar 2008, at 09:16, Martin Maechler wrote:

>>>>>> "CG" == Christophe Genolini <cgenolin at u-paris10.fr>
>>>>>>    on Mon, 31 Mar 2008 00:31:55 +0200 writes:
>
>>>
>>> Generally I find it's good to look at examples that work.
>>> For examples of packages using tests, look at source
>>> packages on CRAN.  Run the tests on them (using R CMD
>>> check), and see what gets produced.
>>>
>    CG> Do you have the name of a package that use it ? I try
>    CG> the 10 first package, and 10 other at random, but none
>    CG> of them use tests...
>
> hmm, I see 219 out 1378 CRAN packages having a 'tests'
> subdirectory, so it seems you have been a bit unlucky. ;-)



How unlucky exactly?


 > fisher.test(matrix(c(0,20,219,1159),2,2))

	Fisher's Exact Test for Count Data

data:  matrix(c(0, 20, 219, 1159), 2, 2)
p-value = 0.05867
alternative hypothesis: true odds ratio is not equal to 1
95 percent confidence interval:
  0.000000 1.082225
sample estimates:
odds ratio
          0

 >


*just* shy of the magic 5% . . .







--
Robin Hankin
Uncertainty Analyst and Neutral Theorist,
National Oceanography Centre, Southampton
European Way, Southampton SO14 3ZH, UK
  tel  023-8059-7743



More information about the R-devel mailing list