R/OneSampleProportion.Equivalence.R

Defines functions OneSampleProportion.Equivalence

Documented in OneSampleProportion.Equivalence

OneSampleProportion.Equivalence <-
function(alpha,beta,p,delta,differ){
    n<-(qnorm(1-alpha)+qnorm(1-beta/2))^2*p*(1-p)/(delta-abs(differ))^2
    return(n)
}

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.