BICcapushe: BICcapushe

View source: R/prog.R

BICcapusheR Documentation

BICcapushe

Description

These functions return the model selected by the Bayesian Information Criterion (BIC).

Usage

BICcapushe(data,n)

Arguments

data

data is a matrix or a data.frame with four columns of the same length and each line corresponds to a model:

  1. The first column contains the model names.

  2. The second column contains the penalty shape values.

  3. The third column contains the model complexity values.

  4. The fourth column contains the minimum contrast value for each model.

n

n is the sample size.

Details

The penalty shape value should be increasing with respect to the complexity value (column 3). The complexity values have to be positive. n is necessary to compute AIC and BIC criteria. n is the size of sample used to compute the contrast values given in the data matrix. Do not confuse n with the size of the model collection which is the number of rows of the data matrix.

Value

model The model selected by BIC.

Examples

data(datacapushe)
BICcapushe(datacapushe,n=1000)

capushe documentation built on Sept. 10, 2025, 10:31 a.m.