Description Usage Arguments Details Value
View source: R/all_models_rhs.R
Takes in the names and lags of the variables, and generates all possible combinations of these to form the right-hand side of the model equations.
1 2 3 4 5 6 7 8 9 10 11 |
y.name |
The name of the Y (left-hand side) variable. If NULL (default), the function creates a temporary name. |
y.max.lags |
A numeric value that gives the maximum number of lags of the Y (left-hand side) variable (see Details). Can be NULL (default) if the past values of the Y variable are not included in the model. |
x.names |
List with names of the X (right-hand side) variables that have a maximum number of lags (see Details). Can be NULL (default) if univariate model or if your model does not have variables of this type. |
x.max.lags |
List of numeric values that give the maximum number of lags of the X (right-hand side) variables. Can be NULL (default). |
x.fixed.names |
List with names of the X (right-hand side) variables that have a fixed number of lags (see Details). Can be NULL (default) if univariate model or if your model does not have variables of this type. |
x.fixed.lags |
List of numeric values that give the fixed number of lags of the variables in x.fixed.names. Can be NULL (default). |
x.interaction.names |
List of character vectors with names of the variables to be included as interaction terms (see Details). Can be NULL (default) if your model does not have interaction terms. |
x.interaction.lags |
List of numeric vectors with lags of the variables to be included as interaction terms. List and numeric vectors should have the same length as the ones in x.interaction.names. Can be NULL (default) if your model does not have interaction terms. |
use.intercept |
If |
If y.max.lags
equals to a number, then all lags of
y.name
up to this number (and starting at 0) will be included
in the list of variables to enter the right-hand side of the model
equations. For example, if y.max.lags = 2
, then
Yt, Yt-1, Yt-2
will be included in the list of variables
to enter the right-hand side of the equation.
A character vector containing all possible combinations of the input variables and lags that form the right-hand side of the model equations.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.