R/propdiff.freq.R

Defines functions `propdiff.freq`

`propdiff.freq` <-
function(len, p1.estimate, p2.estimate, level=0.95)
{
  ceiling(4*qnorm((1+level)/2)^2*(p1.estimate*(1-p1.estimate) + p2.estimate*(1-p2.estimate))/len^2)
}

Try the SampleSizeProportions package in your browser

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

SampleSizeProportions documentation built on Aug. 23, 2023, 1:09 a.m.