Learn R Programming

mixAR (version 0.22.8)

ui: Utility function for mixAR

Description

Extracts the (t-i)th component from a vector.

Usage

ui(x, t, i)

Value

Returns the (t-i)th element of the vector. If i=0, returns 1.

Arguments

x

A vector.

t

The present "time".

i

The lag. Can be a vector.

Author

Davide Ravagli