xlin_fits | R Documentation |
Calculate out of sample linear fit predictions using regularization. Zero indexed.
xlin_fits(x, y, w, i, j)
x |
NumericVector, explanatory variable (length>=2). |
y |
NumericVector, values fit. |
w |
NumericVector, weights (positive). |
i |
integer, first index (inclusive). |
j |
integer, j>=i+2 last index (inclusive); |
vector of predictions.
xlin_fits(c(1, 2, 3, 4), c(1, 2, 2, 1), c(1, 1, 1, 1), 0, 3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.