% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/smsncut.R
\name{cutoff_build_interval}
\alias{cutoff_build_interval}
\title{Build a padded search interval for cutoff root-finding}
\usage{
cutoff_build_interval(theta, family0, family1, pad = 0.5)
}
\arguments{
\item{theta}{Numeric vector: \code{c(theta0, theta1)}.}

\item{family0}{Character. Family for group 0.}

\item{family1}{Character. Family for group 1.}

\item{pad}{Non-negative numeric. Relative expansion factor \eqn{\delta}.
Default \code{0}.}
}
\value{
Named numeric vector \code{c(a = ..., b = ...)}, or
  \code{c(a = NA, b = NA)} if quantiles are non-finite.
}
\description{
Constructs an interval \eqn{[a - \delta \cdot w,\; b + \delta \cdot w]}
where \eqn{[a,b]} is the 0.5th--99.5th percentile effective support of the
two fitted distributions and \eqn{w = b - a} is its width. This mirrors the
interval construction in the Monte Carlo study of de Paula et al. (2026).
}
\examples{
theta <- c(0, log(1), 1, 2, log(1), 1.5)  # theta0 then theta1, both SN
cutoff_build_interval(theta, "SN", "SN")
cutoff_build_interval(theta, "SN", "SN", pad = 0.5)
}
