powered by
Calculate out of sample linear fit predictions using regularization. Zero indexed.
xlin_fits(x, y, w, i, j)
vector of predictions.
NumericVector, explanatory variable (length>=2).
NumericVector, values fit.
NumericVector, weights (positive).
integer, first index (inclusive).
integer, j>=i+2 last index (inclusive);
xlin_fits(c(1, 2, 3, 4), c(1, 2, 2, 1), c(1, 1, 1, 1), 0, 3)
Run the code above in your browser using DataLab