<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Rense Nieuwenhuis &#187; dummy coding</title>
	<atom:link href="http://www.rensenieuwenhuis.nl/tag/dummy-coding/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rensenieuwenhuis.nl</link>
	<description>&#34;The extra-ordinary lies within the curve of normality&#34;</description>
	<lastBuildDate>Thu, 12 Mar 2026 14:58:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.2.2</generator>
	<item>
		<title>Weighted Effect Coding: New publication in the R Journal</title>
		<link>http://www.rensenieuwenhuis.nl/weighted-effect-coding-new-publication-in-the-r-journal/</link>
		<comments>http://www.rensenieuwenhuis.nl/weighted-effect-coding-new-publication-in-the-r-journal/#comments</comments>
		<pubDate>Mon, 03 Jul 2017 08:00:21 +0000</pubDate>
		<dc:creator><![CDATA[Rense Nieuwenhuis]]></dc:creator>
				<category><![CDATA[Peer Reviewed]]></category>
		<category><![CDATA[R-Project]]></category>
		<category><![CDATA[Science]]></category>
		<category><![CDATA[categorical]]></category>
		<category><![CDATA[dummy]]></category>
		<category><![CDATA[dummy coding]]></category>
		<category><![CDATA[factor]]></category>
		<category><![CDATA[R]]></category>
		<category><![CDATA[regression]]></category>
		<category><![CDATA[unbalanced data]]></category>
		<category><![CDATA[wec]]></category>

		<guid isPermaLink="false">http://www.rensenieuwenhuis.nl/?p=6109</guid>
		<description><![CDATA[Weighted effect coding is a technique for dummy coding that can have attractive properties, particularly when analysing observational data. In a new publication in the R Journal we explain the rationale of weighted effect coding, ...]]></description>
				<content:encoded><![CDATA[<p>Weighted effect coding is a technique for dummy coding that can have attractive properties, particularly when analysing observational data. In a <a href="https://journal.r-project.org/archive/2017/RJ-2017-017/index.html">new publication in the R Journal</a> we explain the rationale of weighted effect coding, introduce the &#8216;wec&#8217; package, and provide examples that include interactions.</p>
<p>The attractive property of applying weighted effect coding to categorical (&#8216;factor&#8217;) variables is that each category represents the deviation of that category from the sample mean. This is unlike the more commonly used treatment coding where each a specific category has to be selected as a reference. Weighted effect coding is a generalized form of effect coding that applies to both balanced and unbalanced data. </p>
<p>A form of weighted effect coding was already formulated in 1972 by Sweeney and Ulveling, but it seems to never have found its place in statistical repertoires. Weighted effect coding was not implemented in mainstream statistical software. In an ongoing project, we have now further developed weighted effect coding to also apply to interactions (with both categorical and continuous variables), and provide procedures for mainstream statistical software. <a href="https://cran.r-project.org/web/packages/wec/index.html">For R, we developed the &#8216;wec&#8217; package</a>, and <a href="http://www.ru.nl/sociology/mt/wec/downloads/">procedures for STATA and SPSS are available as well.</a></p>
<p>A key innovation in our article in the R Journal is the formulation of interactions between a categorical variable with a continuous variable. This is visualised in the Figure above. The benefit of estimating such an interaction with weighted effect coding is that upon entering the interaction terms the estimate for the continous variable (as well as the &#8216;main effects&#8217; for the categorical variable) does not change. The &#8216;main&#8217; continous term reflects the average effect in the sample, and the interaction terms represent the deviation of the effect size for each category. </p>
<h2>References</h2>
<p><a href="http://doi.org/10.1007/s00038-016-0902-0">Grotenhuis, Te, M, Pelzer, B., Eisinga, R., Nieuwenhuis, R., Schmidt-Catran, A., &#038; Konig, R. (2017b). A novel method for modelling interaction between categorical variables. International Journal of Public Health, 62(3), 427–431. (open access!) </a></p>
<p><a href="http://doi.org/10.1007/s00038-016-0901-1">Grotenhuis, Manfred, Ben Pelzer, Eisinga, R., Nieuwenhuis, R., Schmidt-Catran, A., &#038; Konig, R. (2017a). When size matters: advantages of weighted effect coding in observational studies. International Journal of Public Health, (62), 163–167. (open access!) </a></p>
<p><a href="https://journal.r-project.org/archive/2017/RJ-2017-017/index.html">Nieuwenhuis, R., Grotenhuis, Te, M., &#038; Pelzer, B. (2017). Weighted Effect Coding for Observational Data with wec. R Journal, 9(1), 477–485.  (open access!)</a></p>
<p><a href="http://amstat.tandfonline.com/doi/abs/10.1080/00031305.1972.10478949?journalCode=utas20">Sweeney, R. E., &#038; Ulveling, E. F. (1972). A transformation for simplifying the interpretation of coefficients of binary variables in regression analysis. The American Statistician.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rensenieuwenhuis.nl/weighted-effect-coding-new-publication-in-the-r-journal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A novel method for modelling interaction between categorical variables</title>
		<link>http://www.rensenieuwenhuis.nl/a-novel-method-for-modelling-interaction-between-categorical-variables/</link>
		<comments>http://www.rensenieuwenhuis.nl/a-novel-method-for-modelling-interaction-between-categorical-variables/#comments</comments>
		<pubDate>Tue, 18 Apr 2017 08:00:43 +0000</pubDate>
		<dc:creator><![CDATA[Rense Nieuwenhuis]]></dc:creator>
				<category><![CDATA[Peer Reviewed]]></category>
		<category><![CDATA[R-Project]]></category>
		<category><![CDATA[Science]]></category>
		<category><![CDATA[dummy coding]]></category>
		<category><![CDATA[interaction]]></category>
		<category><![CDATA[moderation]]></category>
		<category><![CDATA[R]]></category>
		<category><![CDATA[wec]]></category>
		<category><![CDATA[weighted effect coding]]></category>

		<guid isPermaLink="false">http://www.rensenieuwenhuis.nl/?p=6075</guid>
		<description><![CDATA[We have been developing weighted effect coding in an ongoing series of publications (hint: a publication in the R Journal will follow). To include nominal and ordinal variables as predictors in regression models, their categories ...]]></description>
				<content:encoded><![CDATA[<p>We have been developing weighted effect coding in an ongoing series of publications (hint: a publication in the R Journal will follow). To include nominal and ordinal variables as predictors in regression models, their categories first have to be transformed into so-called &#8216;dummy variables&#8217;. There are many transformations available, and popular is &#8216;dummy coding&#8217; in which the estimates represent deviations from a preselected &#8216;reference category&#8217;. </p>
<p>To avoid choosing a reference category, weighted effect coding provides estimates representing deviations from the sample mean. This is particularly useful when the data are unbalanced (i.e., categories holding different numbers of observation). The basics of this  technique, with applications in R, were <a href="http://www.rensenieuwenhuis.nl/when-size-matters-weighted-effect-coding/">detailed here</a>.</p>
<p><a href="http://link.springer.com/article/10.1007/s00038-016-0902-0">In a new publication, available open access,</a>, we show that weighted effect coding can also be applied to regression models with interaction effects (also commonly referred to as moderation). The weighted effect coded interactions represent the additional effects over and above the main effects obtained from the model without these interactions. </p>
<p>To apply the procedures introduced in these papers, called weighted effect coding, procedures are made available for R, SPSS, and Stata. For R, we created the &#8216;wec&#8217; package which can be installed by typing:</p>
<blockquote><p>
install.packages(&#8220;wec&#8221;)
</p></blockquote>
<h1>References (Open Access!)</h1>
<p>Grotenhuis, M., Ben Pelzer, Eisinga, R., Nieuwenhuis, R., Schmidt-Catran, A., &#038; Konig, R. (2017). <b>A novel method for modelling interaction between categorical variables</b>. <I>International Journal of Public Health</i>, 62(3), 427–431. <a href="http://link.springer.com/article/10.1007/s00038-016-0902-0">http://link.springer.com/article/10.1007/s00038-016-0902-0</a> </p>
<p>Grotenhuis, M., Ben Pelzer, Eisinga, R., Nieuwenhuis, R., Schmidt-Catran, A., &#038; Konig, R. (2017). <b>When size matters: advantages of weighted effect coding in observational studies</b>. <I>International Journal of Public Health</i>, 62(1), 163–167. <a href="http://doi.org/10.1007/s00038-016-0901-1">http://doi.org/10.1007/s00038-016-0901-1</a> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.rensenieuwenhuis.nl/a-novel-method-for-modelling-interaction-between-categorical-variables/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Presenting Weighted Effect Coding</title>
		<link>http://www.rensenieuwenhuis.nl/presenting-weighted-effect-coding/</link>
		<comments>http://www.rensenieuwenhuis.nl/presenting-weighted-effect-coding/#comments</comments>
		<pubDate>Tue, 08 Nov 2016 07:25:55 +0000</pubDate>
		<dc:creator><![CDATA[Rense Nieuwenhuis]]></dc:creator>
				<category><![CDATA[Blogging about Science]]></category>
		<category><![CDATA[R-Project]]></category>
		<category><![CDATA[Science]]></category>
		<category><![CDATA[Talks]]></category>
		<category><![CDATA[dummy coding]]></category>
		<category><![CDATA[Manfred]]></category>
		<category><![CDATA[presentation]]></category>
		<category><![CDATA[R]]></category>
		<category><![CDATA[te grotenhuis]]></category>
		<category><![CDATA[wec]]></category>
		<category><![CDATA[weighted effect coding]]></category>

		<guid isPermaLink="false">http://www.rensenieuwenhuis.nl/?p=6011</guid>
		<description><![CDATA[Weighted effect coding is a variant of dummy coding to include categorical variables in regression analyses, in which the estimate for each category represents the deviation of that category from the sample mean. The ‘wec’ ...]]></description>
				<content:encoded><![CDATA[<p>Weighted effect coding is a variant of dummy coding to include categorical variables in regression analyses, in which the estimate for each category represents the deviation of that category from the sample mean. The ‘wec’ package for R provides tools to use weighted effect coding. </p>
<p>Manfred te Grotenhuis is currently visiting the Swedish Institute of Social Research (SOFI), where he presented our joint work on Weighted Effect Coding. The recoding of his presentation is available on <a href="https://www.youtube.com/watch?v=TTLde6HVfOg&#038;t=510s">Manfred&#8217;s YouTube channel</a>, and embedded below:</p>
<p><span class='embed-youtube' style='text-align:center; display: block;'><iframe class='youtube-player' type='text/html' width='1170' height='689' src='http://www.youtube.com/embed/TTLde6HVfOg?version=3&#038;rel=1&#038;fs=1&#038;autohide=2&#038;showsearch=0&#038;showinfo=1&#038;iv_load_policy=1&#038;wmode=transparent' frameborder='0' allowfullscreen='true'></iframe></span></p>
<p>The relevant papers are available here (open access):</p>
<ul>
<li><a href="http://link.springer.com/article/10.1007/s00038-016-0901-1">When size matters: advantages of weighted effect coding in observational studies</a></li>
<li><a href="http://link.springer.com/article/10.1007/s00038-016-0902-0">A novel method for modelling interaction between categorical variables</a></li>
</ul>
<p>More information, as well as software for SPSS and STATA are available from the <a href="http://www.ru.nl/sociology/mt/wec/downloads/">project website</a>. </p>
<p>ps. Stay updated for an exciting update to the ‘wec’ R package!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rensenieuwenhuis.nl/presenting-weighted-effect-coding/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
