% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ctCoverageCheck.R
\name{ctModelCoverage_check}
\alias{ctModelCoverage_check}
\title{Coverage Check Function}
\usage{
ctModelCoverage_check(
  initialData,
  fitting_model,
  niter,
  fit_args,
  cores = 10,
  fit_cores = 1,
  generate_cores = fit_cores,
  plot_every = max(c(10, cores))
)
}
\arguments{
\item{initialData}{An initial dataset to fit to determine 'true' parameters for further generation.}

\item{fitting_model}{A ctModel object used for fitting the data}

\item{niter}{Number of iterations to run}

\item{fit_args}{Named list of fit argument sets to test 
(e.g., list(boot = list(optimcontrol = list(uncertainty = 'bootstrap')), 
hess = list(optimcontrol = list(uncertainty = 'hessian'))))}

\item{cores}{Number of outer simulation iterations to run in parallel.
Inner model fits use \code{fit_cores} by default to avoid nested
parallelism.}

\item{fit_cores}{Number of cores for each inner \code{\link{ctFit}} call.
This is enforced after merging each \code{fit_args} entry so that outer
simulation \code{cores} cannot accidentally be reused by worker fits.}

\item{generate_cores}{Number of cores for \code{\link{ctGenerateFromFit}}
when generating replicated datasets. Defaults to \code{fit_cores}; set it
explicitly to use more cores for generation.}

\item{plot_every}{Print plots every n iterations (default = 10)}
}
\value{
A list containing the results data.table and final plots
}
\description{
Performs a coverage check analysis by generating data from a model, fitting it multiple times
with different fit arguments, and plotting the results.
}
