powered by
This function allows you to determine the value of the t-log-likelihood for the MARX model.
ll.max(params, y, x, p_C, p_NC)
List of parameters.
Data vector of time series observations.
Matrix of data (every column represents one time series). Specify NULL or "not" if not wanted.
Number of lags.
Number of leads.
Minus the loglikelihood.
# NOT RUN { data <- sim.marx(c('t',1,1), c('t',1,1),100,0.5,0.4,0.3) y <- data$y x <- data$x p_C <- 1 p_NC <- 1 params <- c(0.5,0.4,0.3,0,1,1) ll.max(params,y,x,p_C,p_NC) # }
Run the code above in your browser using DataLab