mqr.inference.rate.
power_1sample#
- mqr.inference.rate.power_1sample(ra, H0_rate, nobs, alpha, meas=1.0, alternative='two-sided', method='norm-approx')#
Calculate power of a test of rate of events.
- Null-hypothesis
ra / H0_rate == 1
- Parameters:
- rafloat
Alternative hypothesis rate, forming effect size.
- H0_ratefloat
Null-hypothesis rate.
- nobsint
Number of observations.
- alphafloat
Required significance.
- measfloat, optional
Extent of one period in observation.
- alternative{‘two-sided’, ‘less’, ‘greater’}, optional
Sense of alternative hypothesis.
- method{‘norm-approx’}, optional
Test method. Only ‘norm-approx’, the normal approximation to the binomial distribution, is available.
- Returns: