MStable: All the information for model selection in one data frame.

Description Usage Arguments Value Examples

Description

Information important for model selection in one place - number of parameters, log likelihood, AIC, BIC, AIC and BIC delta, AIC and BIC weights.

Usage

1
MStable(model_names, logLik, noPar, noObs, latex = FALSE)

Arguments

model_names

A character vector with names of the models.

logLik

A numeric vector with log likelihoods for each model.

noPar

A numeric vector with number of parameters for each model.

noObs

A numeric vector with number of observations for each model.

latex

A logical argument, TRUE if latex formatted table is needed, FALSE by default.

Value

A data frame with the information on the models that is recommended for the model selection.

Examples

1
2
3
4
5
6
# example from Wagenmakers and Farrel (2004) article
logLik <- c(-100, -98, -100, -99, -103)
model_names <- c("A1", "A2", "B1", "B2", "C")
noPar <- c(2, 3, 3, 4, 4)
noObs <- rep(240, 5)
MStable(model_names, logLik, noPar, noObs)

hstojic/cogmod documentation built on May 17, 2019, 6:16 p.m.