##' @title MultiNegLlk
##'
MultiNegLlk <-
function(w, X, Y){
Y_hat <- YHatMulti(w, X)
llk <- sum(diag(t(Y) %*% log(Y_hat))) # trace is invariant to cyclic permutations
-llk
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.