% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/smsncut.R
\name{smsn_auc}
\alias{smsn_auc}
\title{Plug-in AUC estimator under SMSN distributions}
\usage{
smsn_auc(theta0, theta1, family0, family1, h = 1000L)
}
\arguments{
\item{theta0}{Numeric vector. Parameters for group 0.}

\item{theta1}{Numeric vector. Parameters for group 1.}

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

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

\item{h}{Integer. Number of grid points. Default \code{1000}.}
}
\value{
Numeric scalar in \eqn{[0,1]}.
}
\description{
Approximates the AUC by the trapezoidal rule with \code{h} grid points
(equation (13) of de Paula et al., 2026). The approximation error is
\eqn{O(h^{-2})}; the default \eqn{h = 1000} gives error \eqn{\approx 10^{-6}}.
}
\examples{
theta0 <- c(0, log(1), 1)
theta1 <- c(2, log(1), 1.5)
smsn_auc(theta0, theta1, "SN", "SN")
}
