##########
# W_stat #
##########
# function for the Wald test
W_stat <- function(y, X, Vi){
t(y) %*% Vi %*% X %*%
chol2inv(chol(t(X) %*% Vi %*% X)) %*% t(X) %*% Vi %*% y
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.