compareModels: Compare output from any set of model fits
Description
Function compares a series of objects of paleoTSfit output from any of the model-fitting functions.
Usage
compareModels(..., silent = FALSE)
Arguments
...
a series of one or more paleoTSfit objects, separated by commas
silent
if TRUE, results of model comparison will not be printed to the screen
Value
If silent=FALSE, returns a dataframe with the above information. If silent=TRUE, returns a list of the dataframe summarizing model fits along with the maximum-likelihood estimates for the parameters in each model.
Details
This function offers a convenient way to view the performance of multiple fitted models. Log-likeihoods, numbers of parameters (K), AICc scores and Akaike weights are returned in a table.
The function checks that all model fits use the same method (parameterization; AD or Joint). If they do not, an error message results. Model fits are only comparable if they are based on the same parameterization.