powered by
Computes the log-likelihood function
logLL(theta, y, X, P)
initial values for the parameters to be optimized over.
a vector containing the dependent variable.
a matrix containing the regressors, with the endogeneous variable being on the last column.
a vector containing the discrete endogeneous regressor.
returns the value of the negative log-likelihood.