Defining optimum partition for a specific variable (regression model)
splitopt.reg(x, splits, fact, method, ...)
matrix or data.frame with the data.
vector indicating the binary partition
vector indicating the variable
string indicating the method: LM or LAD
Further arguments passed on to splitopt.reg
.
list containing information of the optimum partition for a specific variable
Internal function. splitopt.reg
is called by all.part.reg
.