predict.fars: Predict Method for 'fars' Object

View source: R/fars_methods.R

predict.farsR Documentation

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 class 'fars'
predict(object, 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).

Value

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


FARS documentation built on Feb. 17, 2026, 5:06 p.m.