FAQ/ncnpow - CBU statistics Wiki

Upload page content

You can upload content for the page named below. If you change the page name, you can also upload content for another page. If the page name is empty, we derive the page name from the file name.

File to load page content from
Page name
Comment
Type the odd characters out in each group: abz2a 125t7 HhHaHh year.s 5433r21 worl3d

Revision 5 as of 2013-03-08 10:17:39

location: FAQ / ncnpow

Power for using McNamr's test

The power, pow, is produced for McNemar's test comparing mismatch proportions, p12 and p21, in a sample size of ntot with a type I error of alpha.

Copy and Paste the inputs below into R and adjust as required.

alpha <- 0.05
p12 <- 0.5
p21 <- 0.2
ntot <- 23

Copy and paste the below into R to obtain the power.

chisq <- ((p12-p21)^2) / (p12+p21)
pow <- 1 - pchisq(abs(qchisq(1-alpha,1)),1,ntot*chisq)
cat("Power for McNemar's test =")
print(pow)