Re: [R] mc nemar test

From: Peter Dalgaard <p.dalgaard_at_biostat.ku.dk>
Date: Wed 17 May 2006 - 19:46:46 EST

"David Hajage" <dhajage@gmail.com> writes:

> Hello R users,
>
> I would like to perform a mc nemar test.
> There is my data :
> __________________________________
> x <- matrix(4:1,2,2)
>
> x
>
> [,1] [,2]
> [1,] 4 2
> [2,] 3 1
> __________________________________
>
> My population is too small for normal approximation.
> __________________________________
> library(concord)
>
> mcnemar.mh(x)
>
> $statistic
> [1] 0.2
>
> $p
> [1] 0.6547208
>
> Warning message:
> low cell counts - consider binomial test in: mcnemar.mh(x)
>
> ___________________________________
>
> Do you have an advice to perform this test ? Is there a non-parametric one ?
> Thank you very much.

The advice would seem to be rather precise:

> binom.test(2,5)

        Exact binomial test

data: 2 and 5
number of successes = 2, number of trials = 5, p-value = 1 alternative hypothesis: true probability of success is not equal to 0.5 95 percent confidence interval:
 0.05274495 0.85336720
sample estimates:
probability of success

                   0.4


-- 
   O__  ---- Peter Dalgaard             ุster Farimagsgade 5, Entr.B
  c/ /'_ --- Dept. of Biostatistics     PO Box 2099, 1014 Cph. K
 (*) \(*) -- University of Copenhagen   Denmark          Ph:  (+45) 35327918
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)                  FAX: (+45) 35327907

______________________________________________
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 Received on Wed May 17 20:02:40 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 Wed 17 May 2006 - 22:10:12 EST.

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