LS.predict: Least Squares Prediction

Description Usage Arguments Value Examples

View source: R/LSfunctions.R

Description

Least Squares Prediction

Usage

1
LS.predict(model, newdata = NULL)

Arguments

model

output from LS.r function

newdata

input data to predict new output

Value

In-sample prediction vector if newdata not supplied. Otherwise out-of-sample prediction given by input newdata

Examples

1
2
3
df = data.frame(y = c(1,2,3,4), x = c(2,5,3,1))
m = LS.model(y~x, data=df)
LS.predict(m)

DanielWilliamsS/simpleLS documentation built on Jan. 7, 2020, 3:31 p.m.