lagts
Lag time series object
lagts
is not recommended. Use timetable
instead. For more information, see Convert Financial Time Series Objects fints to Timetables.
Syntax
Description
shifts time series values to the right on an increasing time scale.
newfts
= lagts(oldfts
,lagperiod
)lagts
delays the data series to happen later.
lagperiod
is the number of lag periods expressed in the
frequency of the time series object oldfts
. For example, if
oldfts
is a daily time series,
lagperiod
is specified in days. lagts
pads the data with zeros (default).