% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/stats_model_helpers.R
\name{.check_X_ppm}
\alias{.check_X_ppm}
\title{Check Consistency of Spectral Data and ppm Vector}
\usage{
.check_X_ppm(X, ppm)
}
\arguments{
\item{X}{Numeric matrix. NMR spectral matrix with samples in rows and variables in columns (e.g., intensities).}

\item{ppm}{Numeric vector. Chemical shift reference values corresponding to columns of \code{X}.}
}
\value{
Logical. Returns \code{TRUE} if inputs are valid, \code{FALSE} otherwise.
}
\description{
Validates that the NMR data matrix and the chemical shift reference vector
(\code{ppm}) are consistent.
Specifically, it checks that
\itemize{
\item \code{ppm} contains no NA or infinite values.
\item The number of columns in \code{X} matches the length of \code{ppm}.
}

This function is typically used as a preliminary data validation step before downstream spectral analysis.
}
\keyword{internal}
