Learn R Programming

ctsem (version 3.10.5)

ctModelCoverage_check: Coverage Check Function

Description

Performs a coverage check analysis by generating data from a model, fitting it multiple times with different fit arguments, and plotting the results.

Usage

ctModelCoverage_check(
  initialData,
  fitting_model,
  niter,
  fit_args,
  cores = 10,
  plot_every = max(c(10, cores))
)

Value

A list containing the results data.table and final plots

Arguments

initialData

An initial dataset to fit to determine 'true' parameters for further generation.

fitting_model

A ctModel object used for fitting the data

niter

Number of iterations to run

fit_args

Named list of fit argument sets to test (e.g., list(boot = list(optimcontrol = list(bootstrapUncertainty = TRUE)), hess = list(optimcontrol = list(bootstrapUncertainty = FALSE))))

cores

Number of cores to use for parallel processing

plot_every

Print plots every n iterations (default = 10)