xlin_fits {RcppDynProg}R Documentation

xlin_fits

Description

Calculate out of sample linear fit predictions using regularization. Zero indexed.

Usage

xlin_fits(x, y, w, i, j)

Arguments

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);

Value

vector of predictions.

Examples


xlin_fits(c(1, 2, 3, 4), c(1, 2, 2, 1), c(1, 1, 1, 1), 0, 3)


[Package RcppDynProg version 0.2.1 Index]