The R Journal: article published in 2017, volume 9:1

Weighted Effect Coding for Observational Data with wec PDF download
Rense Nieuwenhuis, Manfred te Grotenhuis and Ben Pelzer , The R Journal (2017) 9:1, pages 477-485.

Abstract Weighted effect coding refers to a specific coding matrix to include factor variables in generalised linear regression models. With weighted effect coding, the effect for each category represents the deviation of that category from the weighted mean (which corresponds to the sample mean). This technique has particularly attractive properties when analysing observational data, that commonly are unbalanced. The wec package is introduced, that provides functions to apply weighted effect coding to factor variables, and to interactions between (a.) a factor variable and a continuous variable and between (b.) two factor variables.

Received: 2016-12-23; online 2017-05-10
CRAN packages: wec

CC BY 4.0
This article is licensed under a Creative Commons Attribution 4.0 International license.

  author = {Rense Nieuwenhuis and Manfred te Grotenhuis and Ben Pelzer},
  title = {{Weighted Effect Coding for Observational Data with wec}},
  year = {2017},
  journal = {{The R Journal}},
  doi = {10.32614/RJ-2017-017},
  url = {},
  pages = {477--485},
  volume = {9},
  number = {1}