% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/input_checks.R
\name{check_inputs}
\alias{check_inputs}
\title{Check Inputs}
\usage{
check_inputs(
  criterion,
  model,
  parameters,
  par_values,
  design_space,
  init_design,
  join_thresh,
  delete_thresh,
  delta,
  tol,
  tol2,
  par_int,
  matB,
  reg_int,
  weight_fun
)
}
\arguments{
\item{criterion}{character variable with the chosen optimality criterion.}

\item{model}{formula describing the model. For single-factor models use \code{x} as the
design variable; for multi-factor models use \code{x1}, \code{x2}, etc.}

\item{parameters}{character vector with the parameter names.}

\item{par_values}{numeric vector with the nominal parameter values.}

\item{design_space}{For single-factor models: numeric vector \code{c(min, max)}.
For multi-factor models: named list \code{list(x1 = c(min, max), x2 = c(min, max), ...)}.}

\item{init_design}{optional dataframe with the initial design. For single-factor models
use columns \code{Point} and \code{Weight}; for multi-factor models use one column per
design variable plus \code{Weight}.}

\item{join_thresh}{optional numeric threshold for merging nearby design points.}

\item{delete_thresh}{optional numeric minimum weight to keep a support point.}

\item{delta}{optional numeric in (0, 1), damping parameter of the algorithm.}

\item{tol}{optional numeric for convergence of the weight loop.}

\item{tol2}{optional numeric for the outer stop condition.}

\item{par_int}{optional numeric vector of parameter indices for Ds-optimality.}

\item{matB}{optional k x k matrix for L-optimality.}

\item{reg_int}{optional bounds for the I-optimality integration region.
Single-factor: \code{c(min, max)}.  Multi-factor: named list matching \code{design_space}.}

\item{weight_fun}{optional variance-structure weight function.}
}
\description{
Function to check that the inputs given to the function \code{opt_des} are correct. If not, throws the
correspondent error message.
}
