BICw: Compute BIC weights for a set of models.

Description Usage Arguments Value Examples

View source: R/ModelSelection.R

Description

See Wagenmakers and Farrel (2004) for details.

Usage

1
BICw(BIC_results)

Arguments

BIC_results

A numeric vector of BIC values.

Value

A list of length two. First element is a numeric vector with relative likelihoods and second element is a numeric vector with BIC weights. Vectors are of the same length as inputs, order is preserved.

Examples

1
2
3
4
# example from Wagenmakers and Farrel (2004) article
BIC_results <- c(204, 202, 206, 206, 214)
# computing BIC weights
BICw(BIC_results)

hstojic/cogmod documentation built on May 16, 2017, 11:27 p.m.