prefix: prefix for the name of lagged time series.
var.name: varible name of the lagged time series.
suffix: suffix of the name of lagged time series.
include.orig: logical value (default of TRUE) of whether to include the original series (i.e., lag zero) in the final output.
by.lag: logical value (default of FALSE) of whether to order the column by variable (FALSE) or by lag (TRUE).
...: additional arguments to be passed.
Details
The input data can be a single time series or a set of multiple time series data. The output is a set of lagged time series with the specified lag dimension. All the series are aligned with the shortest window so the loss of observations is equal to lag. The original series (e.g., without lag but just loss of beginning observations) can be included or excluded by setting the logical value of include.org.
The name of the output data is composed of four parts: prefix, var.name, suffix, and an index number of lag. Users can control the first three parts only because the lag number is added automatically. prefix and suffix can be fixed for all the output series. var.name provides some flexibility when bsLag is used within a function and the variable name is unknown a priori.
The column of the output can be ordered either by the variable name (e.g., diff.GA.t_0, diff.GA.t_1, diff.ND.t_0, diff.ND.t_1), or by the lag order ((e.g., diff.GA.t_0, diff.ND.t_0, diff.GA.t_1, diff.ND.t_1).