Nothing
getAveraging <-
function(des){
#########
# Convert a design (either permutation pi or matrix X)
# into the averaging mat format:
# D = res$B * res$ns
# B = res$B
# B-G = res$B - res$G
#########
# If design is a vector, convert it into a matrix
if (is.null(dim(des))) {
des = designVec2Mat(des)
}
D = des %*% t(des)
B = D/colSums(D)
avgmat = list(B= B, ns = colSums(D), G = 1/nrow(D),m=ncol(des))
# B_G = B-1/nrow(D)
# D = B*ns
return(avgmat)
}
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.