Learn R Programming

depCensoring (version 0.1.7)

LikGamma2: First step log-likelihood function for Z binary.

Description

This function defines the maximum likelihood used to estimate the control function in the case of a binary endogenous variable.

Usage

LikGamma2(gamma, Z, M)

Value

Returns the log-likelihood function corresponding to the data, evaluated at the point gamma.

Arguments

gamma

Vector of coefficients in the logistic model used to estimate the control function.

Z

Endogenous covariate.

M

Design matrix, containing an intercept, the exogenous covariates and the instrumental variable.