conCON <-
function(J,conG=1){
#
# Create contrast coefficients for comparisons to a controll
#
# J = number of groups including the control group.
# conG = the group that is the control. By default, assume group 1 is the control
#
Jm1=J-1
A=matrix(rep(1,Jm1^2+Jm1),nrow=J)
A[-conG,]=-1*diag(Jm1)
list(conCON=A)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.