Skip to content
Prev 294499 / 398502 Next

Discrete choice model maximum likelihood estimation

Once again, sorry.
I had a different llfn in my R session and it messed with yours.

llfn <- function(param, a, tt) {


llfn <- sum((a==1)*lL1+(a==2)*lL2+(a==3)*lL3)  # sum of logs, it's a
log-likelihood.
return(-llfn)
}

Rui Barradas

infinitehorizon wrote
--
View this message in context: http://r.789695.n4.nabble.com/Discrete-choice-model-maximum-likelihood-estimation-tp4629877p4629954.html
Sent from the R help mailing list archive at Nabble.com.