% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/smsncut.R
\name{cutoff_boundary_check}
\alias{cutoff_boundary_check}
\title{Verify boundary conditions of Proposition 5.7}
\usage{
cutoff_boundary_check(
  a,
  b,
  theta0,
  theta1,
  family0,
  family1,
  lambda0,
  lambda1,
  pi0,
  pi1
)
}
\arguments{
\item{a}{Numeric. Left endpoint of the admissible interval.}

\item{b}{Numeric. Right endpoint.}

\item{theta0}{Numeric vector. Unconstrained parameters for group 0.}

\item{theta1}{Numeric vector. Unconstrained parameters for group 1.}

\item{family0}{Character. Family for group 0 (\code{"SN"} or \code{"ST"}).}

\item{family1}{Character. Family for group 1 (\code{"SN"} or \code{"ST"}).}

\item{lambda0}{Positive numeric. Cost of a false positive.}

\item{lambda1}{Positive numeric. Cost of a false negative.}

\item{pi0}{Numeric in \eqn{(0,1)}. Prevalence of non-diseased.}

\item{pi1}{Numeric in \eqn{(0,1)}. Prevalence of diseased.}
}
\value{
A list with components \code{phi_a}, \code{phi_b},
  \code{target_ratio}, \code{cond_a}, \code{cond_b}, \code{satisfied}.
}
\description{
Checks whether \eqn{\varphi(a;\theta) < 0} and
\eqn{\varphi(b;\theta) > 0}, which guarantees that the estimating equation
\eqn{\varphi(c,\theta)=0} has a root inside \eqn{(a,b)}.
}
\examples{
theta0 <- c(0, log(1), 1)
theta1 <- c(2, log(1), 1.5)
ab   <- cutoff_admissible_interval(theta0, theta1, "SN", "SN")
cutoff_boundary_check(ab["a"], ab["b"], theta0, theta1, "SN", "SN",
                      1, 1, 0.5, 0.5)
}
