Date: Wed, 26 May 2010 14:52:42 -0400
Reply-To: Keith McCormick <keithmc123@gmail.com>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Keith McCormick <keithmc123@gmail.com>
Subject: Re: Effect Coding Syntax
In-Reply-To: <1753901567.34212.1274896789807.JavaMail.tomcat@aveo>
Content-Type: multipart/alternative;
Hi Courtney,
This is my favorite way to do this in syntax (I did not test this code, but
use this often). There are others as well.
COMPUTE married_yn = marital_status = 1.
COMPUTE single_yn = marital_status = 2.
COMPUTE divorced_yn = marital_status = 3.
etc.
HTH,
Keith
www.keithmccormick.com
On Wed, May 26, 2010 at 1:59 PM, Courtney M. Cronley <
cronley@rci.rutgers.edu> wrote:
> Simple question. Does anyone have an example of syntax for effect coding? I
> have one variable with five categories that I need to recode using effect
> coding.
>
> Thanks,
>
> Courtney
>
> Courtney Cronley, Ph.D.
> Postdoctoral Associate
> Center of Alcohol Studies
> Rutgers University
> cronley@rci.rutgers.edu
>
> =====================
> To manage your subscription to SPSSX-L, send a message to
> LISTSERV@LISTSERV.UGA.EDU (not to SPSSX-L), with no body text except the
> command. To leave the list, send the command
> SIGNOFF SPSSX-L
> For a list of commands to manage subscriptions, send the command
> INFO REFCARD
>
[text/html]
|