compare_models: Compare model fits with BIC

View source: R/compare_models.r

compare_modelsR Documentation

Compare model fits with BIC

Description

This function compares model fits with the Bayesian Information Criterion (BIC). The model with the lowest BIC has the highest likelihood or fit of the model to the data. A BIC difference between two models (ΔBIC) is equal to the Bayes Factor. A likelihoods.

Usage

compare_models(models, file)

Arguments

models

A list of models to compare (e.g., models <- list(model1, model2, model3)) where each model is an output from the fit_punc_model function

file

Output file directory

Value

This function outputs a text file containing a BIC table.

Author(s)

Kevin Surya

References

Schwarz (1978); Kass and Raftery (1995)


suryakevin/drugcandy documentation built on May 6, 2022, 6:37 p.m.