% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nleqslv.R
\name{check_estimating_system}
\alias{check_estimating_system}
\title{Validate the Jacobian and estimating equation vector}
\usage{
check_estimating_system(J, g, label = "method", tol_singular = 1e-07)
}
\arguments{
\item{J}{Square numeric Jacobian matrix of dimension \eqn{p \times p}.}

\item{g}{Numeric estimating equation vector of length \eqn{p}.}

\item{label}{Character string used as a prefix in error messages to
identify the calling method.}

\item{tol_singular}{Tolerance passed to `qr()` for detecting rank
deficiency. Default is `1e-7`, matching R's `qr()` default.}
}
\value{
`invisible(TRUE)` if all checks pass; otherwise stops with
  an informative error message.
}
\description{
Checks that the Jacobian `J` and estimating equation vector `g`
are numerically valid and that `J` is square and full rank before
a Newton-Raphson step is taken.
}
\keyword{internal}
