CALM is an R package for creating and interpreting contrast codes for linear models. It is an extension of the built-in contrast specifications in R and inspired by Venables's codingMatrices package, but it includes codes not available in other packages. In addition to providing contrast specifications, it includes functions for directly converting hypothesized differences (contrasts) into linear model codes (and vice versa).
This package is not currently on CRAN, but can be installed and loaded using these R commands
install.packages("remotes")
remotes::install_github("cwendorf/CALM")
library(CALM)
If you do not wish a full install, the latest functions can be made available using these R commands:
source("http://raw.githubusercontent.com/cwendorf/CALM/main/source-CALM.R")
The Tutorials for CALM provide basic documentation and examples of:
- Extracting hypotheses from existing coding patterns
- Producing codes from contrast hypotheses
- Using predefined and custom codes in linear models
- GitHub Issues: https://github.com/cwendorf/CALM/issues
- Author Email: cwendorf@uwsp.edu
- Author Homepage: https://cwendorf.github.io
Wendorf, C.A. (2021). CALM: Contrast Algorithms for Linear Models [R Package]. https://github.com/cwendorf/CALM