[R] how to make an orthogonal contrasts matrix?

Richard M. Heiberger rmh at temple.edu
Wed Sep 12 22:55:00 CEST 2007


tmp <- c(7,7,7,7, -4,-4,-4,-4,-4,-4,-4)
tmpf <- factor(letters[1:11])
tmpf
contrasts(tmpf)
contrasts(tmpf) <- tmp
contrasts(tmpf)
zapsmall(crossprod(contrasts(tmpf)))



More information about the R-help mailing list