This function merges model chains, checks for missing or incomplete model runs, and optionally prints information about incomplete models. It saves the processed model objects to disk.
Usage
Mod_Merge_Chains(
ModelDir = NULL,
NCores = NULL,
ModInfoName = NULL,
PrintIncomplete = TRUE,
FromJSON = FALSE,
Extension = "qs2"
)
Arguments
- ModelDir
Character. Path to the root directory of the fitted model. Two folders will be created
Model_Fitted
andModel_Coda
to store merged model and coda objects, respectively.- NCores
Integer. Number of CPU cores to use for parallel processing.
- ModInfoName
Character. Name of the file (without extension) where the processed model information will be saved. If
NULL
, it overwrites theModel_Info.RData
file in theModelDir
directory. If provided, a new.RData
file will be created with this name.- PrintIncomplete
Logical. Whether to print the names of models that were not successfully fitted to the console. Defaults to
TRUE
.- FromJSON
Logical. Whether to convert loaded models from JSON format before reading. Defaults to
FALSE
.- Extension
Character. File extension (without dot) for the files containing the fitted model and coda objects. It can be either
qs2
orRData
. Defaults toqs2
.