R/xlin_fits_V.R
xlin_fits_V.Rd
Calculate out of sample linear fit predictions.
xlin_fits_V(x, y, w)
NumericVector, x-coords of values to group (length>=2).
NumericVector, values to group in order.
NumericVector, weights (positive).
vector of predictions.
xlin_fits_V(c(1, 2, 3, 4), c(1, 2, 2, 1), c(1, 1, 1, 1)) #> [1] 2.666715 1.285715 1.285712 2.666668