powered by
Fit a linear model on (x, y) and a tree on the residual yhat - y
partLin(x1, y1, lambda = 1, part.minsplit = 2, part.xval = 0, part.max.depth = 1, part.cp = 0, minobsinnode.lin = 5, verbose = TRUE, trace = 0)