Learn R Programming

FARS (version 0.7.1)

predict.fars: Predict Method for fars Object

Description

Computes predictions from all quantile regressions in a fars object. newdata must contain (in this order) the lagged dependent variable column followed by the factor columns. Column names are generated internally as LagY, F1, F2, ..., Fr.

Usage

# S3 method for fars
predict(object, newdata, ...)

Value

A numeric matrix with one column per quantile level and one row per observation in newdata.

Arguments

object

An object of class fars.

newdata

A matrix or data frame with one column for the lagged dependent variable and r columns for the factors (same r used in compute_fars()).

...

Additional arguments (ignored).