powered by
This function allows you to create a regressor matrix.
regressor.matrix(y, x, p)
Data vector of time series observations.
Matrix of data (every column represents one time series). Specify NULL or "not" if not wanted.
Number of autoregressive terms to be included.
Regressor matrix
# NOT RUN { data <- sim.marx(c('t',3,1),c('t',1,1),100,0.5,0.4,0.3) regressor.matrix(data$y, data$x, 2) # }
Run the code above in your browser using DataLab