search for: 21of

Displaying 1 result from an estimated 1 matches for "21of".

Did you mean: 21ff
2008 Jun 16
1
Error in maximum likelihood estimation.
...mastar loglik <- (-0.5 * nrow(x) *(log(2*pi) + log(sigma2)) -0.5 * sum(( y - x %*% beta + z %*% delta)^2/sigma2) -sum(log(pnorm(d))) + sum(log(pnorm(dstar)))) return(-loglik) } ----------------------------------------------- Loglikelihood function is from page 21of Battese and Coelli (1993). (You can download this article at http://www.une.edu.au/economics/publications/econometrics/emwp69.PDF ) To test the above function with an artificial data set, I created the following data.frame. ----------------------------------------------- x1 <- abs(rnorm...