Learn R Programming

RcppDynProg (version 0.2.1)

xlin_fits_V: xlin_fits_R

Description

Calculate out of sample linear fit predictions.

Usage

xlin_fits_V(x, y, w)

Value

vector of predictions.

Arguments

x

NumericVector, x-coords of values to group (length>=2).

y

NumericVector, values to group in order.

w

NumericVector, weights (positive).

Examples

Run this code

xlin_fits_V(c(1, 2, 3, 4), c(1, 2, 2, 1), c(1, 1, 1, 1))

Run the code above in your browser using DataLab