Performance.Poisson function calculates several performance
metrics for the continuous Poisson based MaxSPRT. The user specifies the upper limit on the sample
size (SampleSize), the delayed start of analysis (D), the minimujm number of events required before rejecting the null hypothesis (M), the upper boundary critical value (cv) and a relative risk (RR).
The metrics calculated are the statistical power, the expected time to signal when the null hypothesis is
rejected and the expected sample size at the end of the analysis whether the null hypothesis was rejected or not. If the user wants to calculate
the statistical significance level alpha, that can be done by setting RR=1, in which case the power output value is the alpha level.Performance.Poisson(SampleSize, D = 0, M = 1, cv, RR = 2)CV.Poisson) function.Performance.Poisson function calculates the statistical power, the expected time to signal
when the null hypothesis is rejected and the expected sample size until the analysis ends whether the null is rejected or not.
Large values of "SampleSize", such as "SampleSize>1000", leads to a long comcputing times.# Critical value for an upper limit on the sample size equal to 10 and a significance
# level equal to 0.05:
cvt<- CV.Poisson(SampleSize=10,D=0,M=1,alpha=0.05)
## Power, expected signal time and expected sample size for a relative risk equal to 2:
#Performance.Poisson(SampleSize=10,D=0,M=3,cvt,RR=2)Run the code above in your browser using DataLab