No, since I'd like to test null: p <= p0 alternative: p > p0. and my understanding is that binom.test tests null: p = p0 (can only be a "simple" null hypothesis according to help(binom.test)) alternative: p > p0 (or p < p0 or p != p0). Thanks, Mirko.> -----Urspr?ngliche Nachricht----- > Von: Douglas Bates [mailto:bates at stat.wisc.edu] > Gesendet: Freitag, 8. Juni 2001 20:51 > An: L?dde Mirko > Betreff: Re: [R] binom.test appropriate? > > > L?dde Mirko <mirko.luedde at cellcontrol.de> writes: > > > Hi there, > > > > as part of a 2 x 2 contingency table analysis I would like > to estimate > > conditional probabilities (success rates) in a Bernoulli > > experiment. In particular I want to test a null hypothesis p <= p0 > > versus the alternative hypothesis p > p0. > > > > As far as I understand the subject, there are UMPU tests for these > > types of hypotheses. > > > > Now I know about R's "binom.test" but the help text is telling me it > > will test only simple null hypotheses of the form p = p0. > > The help page says that the "alternative" argument can be used to > specify "greater" as the alternative hypothesis. Isn't this what you > want? > > > binom.test package:ctest R Documentation > > Exact Binomial Test > > Description: > > Performs an exact test of a simple null hypothesis about the > probability of success in a Bernoulli experiment. >... snipped ... -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Sat, 9 Jun 2001, [iso-8859-1] Lüdde Mirko wrote:> No, > > since I'd like to test > > null: p <= p0 > alternative: p > p0. > > and my understanding is that binom.test tests > > null: p = p0 (can only be a "simple" null hypothesis > according to help(binom.test)) > alternative: p > p0 (or p < p0 or p != p0).But: the test for p = p0 vs p > p0 is the appropriate test for p <= p0 vs p > p0 within this family of tests, by the monotonicity properties. You mentioned a 2 x 2 table and UMPU, but did not say exactly what you are doing or how the data were sampled, nor how this hypothesis arises. Under one set of assumptions, I believe the UMPU theory you mention tells you to use the binom.test for p = p0 vs p > p0, but it may be that other tests (Fisher's exact test springs to mind) are more appropriate. (And the last U can be insidious, just as it can be for estimation.) It's rare to have hypotheses like p = p0 or p <= p0 with p0 known precisely: Mendelian genetics provides almost all the examples I have ever seen. If p0 comes from past experience, then it's a different problem. [...] -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._