xlin_fits_R {RcppDynProg} | R Documentation |
xlin_fits_R
Description
Calculate out of sample linear fit predictions.
Usage
xlin_fits_R(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
xlin_fits_R(c(1, 2, 3, 4), c(1, 2, 2, 1), c(1, 1, 1, 1))
[Package RcppDynProg version 0.2.1 Index]