AddBF {boostingDEA}R Documentation

Add a new pair of Basis Functions

Description

This function adds the best pair of basis functions to the model

Usage

AddBF(data, x, y, ForwardModel, knots_list, Kp, minspan, Le, linpreds, err_min)

Arguments

data

data data.frame or matrix containing the variables in the model.

x

Column input indexes in data.

y

Column output indexes in data.

ForwardModel

list containing the set of basis functions and the B matrix.

knots_list

list containing the set of selected knots.

Kp

Maximum degree of interaction allowed.

minspan

integer. Minimum number of observations between knots. When minspan = 0, it is calculated as in Friedman's MARS paper section 3.8 with alpha = 0.05.

Le

integer Minimum number of observations before the first and after the final knot.

linpreds

logical. If TRUE, predictors can enter linearly

err_min

Minimum error in the split.

Value

A list containing the matrix of basis functions (B), a list of basis functions (BF), a list of selected knots (knots_list) and the minimum error (err_min).


[Package boostingDEA version 0.1.0 Index]