logLik.logit <- function(beta, attr, choice, chid, avi){
exp_v <- exp(attr %*% beta) * avi
p <- rowsum(exp_v * choice, chid) / rowsum(exp_v, chid)
log(p)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.