Computes an exact Poisson confidence interval for a count rate.
Value
Named numeric vector (lower, upper) for the rate sum(x) / n, with confidence level stored as an attribute.
Details
The count-response analogue of ci_clopper_pearson(), used by
the quantile-binned summary layer (see er_plot_add_quantiles())
and er_vpc_add_observed()/er_vpc_add_simulated() when
response_type = "count" is explicitly declared. Unlike ci_t()
(the default, opt-in-required
approximation used when a count response auto-detects or is declared
"continuous"), this interval is exact and never produces a
negative lower bound. Uses the standard exact ("Garwood") Poisson
interval, derived from the chi-squared/gamma relationship; if the
total count is 0, the lower bound is 0.