mbic2: mBIC2

Description Usage Arguments Value Examples

View source: R/criteria.R

Description

Calculate mBIC2 (the second version of modified Bayesian Information Criterion).

Usage

1
mbic2(loglik, k, n, p, const = 4)

Arguments

loglik

A numeric, the log-likelihood.

k

An integer >= 0, the number of selected variables.

n

An integer > 0, the number of observations.

p

An integer > 0, the number of all variables or a weight.

const

A numeric > 0, the expected number of significant variables.

Value

A number, a value of mBIC2.

Examples

1
mbic2(10, 5, 100, 50)

bigstep documentation built on March 22, 2019, 1:05 a.m.