Nothing
mugupdate <-
function(G,zmat,w,x,p,mug,n){
for(g in 1:G){
# zw <-
# mug[g,] <- colSums(c(zmat[,g])*c(w[,g])*x)/sum(c(zmat[,g])*c(w[,g]))
# mug[g,] <- colSums(zmat[,g]*w[,g]*x)/sum(zmat[,g]*w[,g])
# zw <- zmat[,g]*w[,g]
# mug[g,] <- .colSums(zw*as.matrix(x),n,p)/sum(zw)
mug[g,] <- .colSums(zmat[,g]*w[,g]*as.matrix(x),n,p)/sum(zmat[,g]*w[,g])
}
mug
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.