% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/utils.R
\name{wilson_ci}
\alias{wilson_ci}
\title{Internal: Wilson score confidence interval for a binomial proportion}
\usage{
wilson_ci(x, n, conf = 0.95)
}
\arguments{
\item{x}{Integer number of successes.}

\item{n}{Integer number of trials.}

\item{conf}{Confidence level in \eqn{(0,1)} (default 0.95).}
}
\value{
Numeric vector of length 2: lower and upper confidence bounds.
}
\description{
Computes a Wilson score interval for \eqn{x/n} at confidence level \code{conf}.
Returns \code{c(NA, NA)} when \code{n == 0}.
}
\keyword{internal}
