Crandore Hub

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/>.

Versions across snapshots

VersionRepositoryFileSize
0.1.0 rolling linux/jammy R-4.5 peticontrast_0.1.0.tar.gz 9.5 KiB
0.1.0 rolling linux/noble R-4.5 peticontrast_0.1.0.tar.gz 9.5 KiB
0.1.0 rolling source/ R- peticontrast_0.1.0.tar.gz 2.8 KiB
0.1.0 latest linux/jammy R-4.5 peticontrast_0.1.0.tar.gz 9.5 KiB
0.1.0 latest linux/noble R-4.5 peticontrast_0.1.0.tar.gz 9.5 KiB
0.1.0 latest source/ R- peticontrast_0.1.0.tar.gz 2.8 KiB
0.1.0 2026-04-26 source/ R- peticontrast_0.1.0.tar.gz 2.8 KiB
0.1.0 2026-04-23 source/ R- peticontrast_0.1.0.tar.gz 0 B

Dependencies (latest)

Imports

Suggests