methods-predict: Regression Models Prediction Function

predict-methodsR Documentation

Regression Models Prediction Function

Description

Predicts a time series from a fitted regression model.

Usage

## S4 method for signature 'fREG'
predict(object, newdata, se.fit = FALSE, type = "response", ...)

Arguments

newdata

new data.

object

an object of class fREG as returned from the function regFit().

se.fit

a logical flag. Should standard errors be included? By default FALSE.

type

a character string by default "response".

...

arguments to be passed.

Value

returns ...

Methods

object = "ANY"

Generic function

object = "fREG"

Predict method for regression models.

Author(s)

Diethelm Wuertz for the Rmetrics R-port.

Examples

## regSim -
   x <- regSim(model = "LM3", n = 50)
  
## regFit -
   fit <- regFit(Y ~ X1 + X2 + X3, data = x, use = "lm")

fRegression documentation built on Jan. 14, 2024, 8:23 p.m.