R/McNemar.Test.R

Defines functions McNemar.Test

Documented in McNemar.Test

McNemar.Test <-
function(alpha,beta,psai,paid){

n<-(qnorm(1-alpha/2)*(psai+1)+qnorm(1-beta)*sqrt((psai+1)^2-(psai-1)^2*paid))^2/((psai-1)^2*paid)

}

Try the TrialSize package in your browser

Any scripts or data that you put into this service are public.

TrialSize documentation built on July 8, 2020, 7:19 p.m.