peticontrast: Professional Contrast Coding for OLS Models

Automates sum coding (also known as effect coding) for Ordinary Least Squares (OLS) regression models. This approach is specifically designed to handle seasonal time series and categorical variables by comparing each group to the grand mean, rather than a single baseline category. This ensures that the intercept represents the unweighted grand mean of the dependent variable. For a comprehensive overview of contrast coding systems, see the UCLA Advanced Research Computing documentation (2021) <https://stats.oarc.ucla.edu/r/library/r-library-contrast-coding-systems-for-categorical-variables/>.

Version: 0.1.0
Imports: stats
Suggests: knitr
Published: 2026-04-23
DOI: 10.32614/CRAN.package.peticontrast (may not be active yet)
Author: Peti Mester [aut, cre]
Maintainer: Peti Mester <petyatoth2005 at gmail.com>
License: MIT + file LICENSE
NeedsCompilation: no
Materials: README
CRAN checks: peticontrast results

Documentation:

Reference manual: peticontrast.html , peticontrast.pdf

Downloads:

Package source: peticontrast_0.1.0.tar.gz
Windows binaries: r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): peticontrast_0.1.0.tgz, r-oldrel (arm64): peticontrast_0.1.0.tgz, r-release (x86_64): peticontrast_0.1.0.tgz, r-oldrel (x86_64): peticontrast_0.1.0.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=peticontrast to link to this page.