Date: Mon, 30 Mar 2009 03:25:45 -0700
Reply-To: Albert-jan Roskam <fomcl@yahoo.com>
Sender: "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From: Albert-jan Roskam <fomcl@yahoo.com>
Subject: Re: Compute new variable
Content-Type: text/plain; charset=iso-8859-1
Hi,
COUNT does wat you want:
countvar = count v1 to v6 (3).
You can recode it to make countvar binary, of course.
Cheers!!
Albert-Jan
--- On Mon, 3/30/09, Darren Philpott <Darren.Philpott@shlgroup.com> wrote:
> From: Darren Philpott <Darren.Philpott@shlgroup.com>
> Subject: Compute new variable
> To: SPSSX-L@LISTSERV.UGA.EDU
> Date: Monday, March 30, 2009, 12:16 PM
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Hi
>
>
> I
> have a data set
> containing candidate responses to a test. The
> responses
> are numeric (1-5). Each candidate represents a
> case and the
> responses to each test question are variables 1 -
> 30.
>
>
> I
> need to compute a
> new variable to flag candidates who have responded with
> the same answer too
> many times in a row e.g.
>
>
>
> For
> example if a
> candidate responds with the same answer 6 times (e.g.
> 3,3,3,3,3,3) in a row
> anywhere within the 30 questions a
> 'flag' variable should be created
> with a value of 1.
>
>
>
> Any
> ideas on how I
> can compute this variable would be appreciated, syntax is
> very welcome.
>
>
> Thanks,
>
> Darren
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> _____________________________________________________________________
>
> This e-mail has been scanned for viruses by Verizon
> Business Internet Managed Scanning Services - powered by
> MessageLabs. For further information visit
> http://www.verizonbusiness.com/uk
>
>
>
>
>
=====================
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
|