Learn R Programming

bigstep (version 0.7.4)

maic2: mAIC2

Description

Calculate mAIC2 (the second version of modified Akaike Information Criterion).

Usage

maic2(loglik, n, k, p, const = 4)

Arguments

loglik

a numeric, the log-likelihood.

n

an integer > 0, a number of observations.

k

an integer >= 0, a number of selected variables.

p

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

const

numeric > 0, the expected number of significant variables.

Value

A number, a value of mAIC2.

Examples

Run this code
# NOT RUN {
mbic2(loglik=10, n=100, k=5, p=50)
# }

Run the code above in your browser using DataLab