From r.hankin at noc.soton.ac.uk  Mon Mar 31 10:37:28 2008
From: r.hankin at noc.soton.ac.uk (Robin Hankin)
Date: Mon, 31 Mar 2008 09:37:28 +0100
Subject: [Rd] tests Rin and Rout
In-Reply-To: <18416.40443.244387.473214@stat.math.ethz.ch>
References: <47F014DB.6040000@u-paris10.fr>
	<18416.40443.244387.473214@stat.math.ethz.ch>
Message-ID: <F6B20CA9-4E06-4759-99A8-6F572B3CBCFC@noc.soton.ac.uk>


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



[Rd] tests Rin and Rout
Robin Hankin