Nothing
weight_matrix <-
function(A,
W,
B){
if(dim(A)[1]!=dim(B)[1])#prevent different dimension
stop("the dimensions are different")
else
samplesize <- dim(A)[1]
W_matrix <- diag(as.vector(W))
weight_matrix <- t(A)%*%W_matrix%*%B
return(weight_matrix)
}
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.