MoTBFs (version 1.2)

BICMultiFunctions: BIC for Multiple Functions

Description

Compute the BIC score for more than one function

Usage

BICMultiFunctions(Px, X)

Arguments

Px

A list with 'n' elements. Each element contains a "motbf" function.

X

A list with 'n' elements. Each one contains a "numeric" vector with the values of the data set which correspond to the diferent functions.

Value

The "numeric" BIC value.

See Also

univMoTBF

Examples

Run this code
# NOT RUN {
## Data
X <- rnorm(500)
Y <- rnorm(500, mean=1)
data <- data.frame(X=X, Y=Y)
## Data as a "list"
Xlist <- sapply(data, list)

## Learning as a "list"
Plist <- lapply(data, univMoTBF, POTENTIAL_TYPE="MOP")
Plist

## BIC value
BICMultiFunctions(Px=Plist, X=Xlist)

# }

Run the code above in your browser using DataLab