Learn R Programming

REndo (version 1.3)

logLL: Log-likelihood

Description

Computes the log-likelihood function

Usage

logLL(theta, y, X, P)

Arguments

theta

initial values for the parameters to be optimized over.

y

a vector containing the dependent variable.

X

a matrix containing the regressors, with the endogeneous variable being on the last column.

P

a vector containing the discrete endogeneous regressor.

Value

returns the value of the negative log-likelihood.