Learn R Programming

fRegression (version 4021.83)

predict-methods: Regression Models Prediction Function

Description

Predicts a time series from a fitted regression model.

Usage

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

Value

returns ...

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.

Methods

object = "ANY"

Generic function

object = "fREG"

Predict method for regression models.

Author

Diethelm Wuertz for the Rmetrics R-port.

Examples

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

Run the code above in your browser using DataLab