Description Usage Arguments Value Author(s) References
Computes the log-likelihood function. Only two groups are considered, since as presented in Ebbes et al (2005) this gives good, unbiased results.
1 | logL(theta, y, P)
|
theta |
- a vector of initial values for the parameters of the model to be supplied to the optimization algorithm. |
y |
- a vector or matrix containing the dependent variable. |
P |
- a vector with the endogeneous variable or a matrix of dimention n X 2, where each column contains an endogeneous variable |
returns the value of the negative log-likelihood.
adapted by Raluca Gui from the code provided by Professor Ebbes during a workshop at Univ. of Zurich in April 2015.
Ebbes, P., Wedel,M., Boeckenholt, U., and Steerneman, A. G. M. (2005). 'Solving and testing for regressor-error (in)dependence when no instruments
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.