Learn R Programming

QPBoot (version 0.2)

setEstimate-tsModel: Sets the estimation Method of a tsModel-class

Description

Defines the method that should be used when calling Estimate on the tsModel-class. The Estimate function must have exactly the following two arguments: data (numeric vector) and spec (a list) and return a list containing the estimated parameters.

Usage

# S4 method for tsModel
setEstimate(object, estimate)

Arguments

object

the tsModel-class for that the estimation method shall be defined

estimate

a function that has exactly two argumens: data (numeric vector) and spec (a list) and returns a list containing the estimated parameters.

Value

Sets the est_function slot of the tsModel-class.