SumToZero | R Documentation |
Compute sum to zero values across all levels of a data matrix
SumToZero(q.levels, data, contrasts)
q.levels |
number of levels of each variable/column |
data |
data matrix to combine from |
contrasts |
specified contrasts columns |
data <- matrix(c(1,2),ncol=2) colnames(data) <- c("m1[1]","m1[2]") SumToZero( 2 , data , contrasts = NULL ) # b0[1] b1[1] b1[2] # m1[1] 1.5 -0.5 0.5
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.