fbedreg.bic: Incremental BIC values and final regression model of the FBED...

View source: R/fbedreg.bic.R

Incremental BIC values and final regression model of the FBED algorithmR Documentation

Incremental BIC values and final regression model of the FBED algorithm

Description

Incremental BIC values and final regression model of the FBED algorithm.

Usage

fbedreg.bic(target, dataset, wei = NULL, fbedreg.object, test = NULL, graph = TRUE)

Arguments

target

A numeric vector containing the values of the target variable. It can also discrete data, binary data (as factor), nominal or ordinal data (as factor). In contrast to SES, no position of the target variable in the dataset is accepted. The target must be a numerical vector.

dataset

A numeric matrix or data.frame containing the variables. Rows are samples and columns are features. If you have categorical variables, this should be a data frame.

wei

A vector of weights to be used for weighted regression. The default value is NULL. An example where weights are used is surveys when stratified sampling has occured. We suggest not to use weights if you choose "testIndMMReg" as weights are already being used there.

fbedreg.object

An object with the results of an FBED run.

test

If you know the test used in SES put it here, otherwise leave it NULL. It will take this information from the SES object.

graph

If you want a graphical representation of the drop in the BIC values set this to TRUE.

Details

This function takes the output of the FBED (fbed.reg) and fits succesive models calculating the BIC for each of them. A graph can also be returned.

Value

A list including:

res

A matrix with the selected variables, their test statistic and p-value (taken from the fbedreg.object) along with the BIC. Each row contains a BIC, that is the BIC of the model with the variables up to that row.

mod

The final model with all selected variables.

Author(s)

Michail Tsagris

R implementation and documentation: Michail Tsagris mtsagris@uoc.gr

References

Borboudakis G. and Tsamardinos I. (2019). Forward-backward selection with early dropping. Journal of Machine Learning Research, 20(8): 1-39.

See Also

reg.fit, mmpc.model, SES, MMPC, cv.ses, cv.mmpc

Examples

dataset <- matrix( runif(100 * 20, 1, 100), ncol = 20 )
#define a simulated class variable 
target <- rt(100, 10)
a <- fbed.reg(target, dataset, K = 10, test = "testIndFisher", method = "eBIC") 
fbedreg.bic(target, dataset, fbedreg.object = a, test = "testIndFisher")

MXM documentation built on Aug. 25, 2022, 9:05 a.m.