Learn R Programming

tspredit (version 1.2.747)

do_fit: Fit Time Series Model

Description

Generic for fitting a time series model. Descendants should implement do_fit.<class>.

Usage

do_fit(obj, x, y = NULL)

Value

A fitted object (same class as obj).

Arguments

obj

Model object to be fitted.

x

Matrix or data.frame with input features.

y

Vector or matrix with target values.