SampleSize.poisson obtains the maximum sample size (length of surveillance) needed to guarantee a desired statistical power
when applying the MaxSPRT test with a Wald type upper boundary, which is flat with respect to the log-likelihood ratio.SampleSize.Poisson(alpha=0.05,power=0.9,M=1,D=0,RR=2,precision=0.000001)SampleSize.Poisson calculates the upper limit on the sample size (length of surveillance) that needs to be set for the
continuous Poisson based MaxSPRT in order to provide the user specified statistical power for the user specified relative risk (RR).
The solution is exact using iterative numerical calculations. For details, see Kulldorff et al. (2011).# Upper limit on the sample size required to obtain a power of 90%, for a relati-
# ve risk of 3, no delay for starting the surveillance (D=0), and the null hypothe-
# sis can be rejected with only one event (M=1).
# SampleSize.Poisson(alpha=0.05,power=0.8,M=1,D=0,RR=3)Run the code above in your browser using DataLab