Calculate out of sample linear fit predictions.
xlin_fits_lm(x, y, w)
Arguments
x |
NumericVector, x-coords of values to group (length>=2). |
y |
NumericVector, values to group in order. |
w |
NumericVector, weights (positive). |
Value
vector of predictions.
Examples
#> [1] 2.666667 1.285714 1.285714 2.666667