mqr.inference.rate.
confint_1sample#
- mqr.inference.rate.confint_1sample(count, n, meas=1.0, conf=0.95, bounded='both', method='wald-cc')#
Confidence interval for rate count / n / meas.
- Parameters:
- countint
Number of events.
- nint
Number of periods over which events were counted.
- measfloat, optional
Extent of one period of observation.
- conffloat, optional
Confidence level that determines the width of the interval.
- method{‘chi2’, ‘exact’, ‘wald’, ‘wald-cc’}, optional
- ‘chi2’Chi2 interval, see [2].‘exact’Exact method, recommended for small count. Implements method 9 in [3].‘wald-cc’Wald method with continuity correction, recommended for small count. Implements method 5 in [1].(other)Everything else is passed to
sm..confint_poisson
, which supports only two-sided intervals.
- Returns:
Notes
For a discussion on the benefits and disadvantages of various intervals, including these, see [1] and [3].
References