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.

@article{RJ-2017-017,
  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}},
  url = {https://journal.r-project.org/archive/2017/RJ-2017-017/index.html},
  pages = {477--485},
  volume = {9},
  number = {1}
}