Weighted Effect Coding for Observational Data with wec
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@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}}, doi = {10.32614/RJ-2017-017}, url = {https://doi.org/10.32614/RJ-2017-017}, pages = {477--485}, volume = {9}, number = {1} }