powered by
This function allows you to determine the MARX model (for p = r + s) that maximizes the t-log-likelihood.
selection.lag.lead(y, x, p_pseudo)
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 in the pseudo-causal model.
The number of lags selected.
The number of leads selected.
The value of the loglikelihood for all models with p = r + s.
# NOT RUN { data <- sim.marx(c('t',3,1), c('t',3,1),100,0.5,0.4,0.3) selection.lag.lead(data$y,data$x,2) # }
Run the code above in your browser using DataLab