LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (August 2010)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Sun, 29 Aug 2010 23:48:33 +0800
Reply-To:     Eins Bernardo <einsbernardo@yahoo.com.ph>
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         Eins Bernardo <einsbernardo@yahoo.com.ph>
Subject:      Re: How to automatically erase ?
Comments: To: Richard Ristow <wrristow@mindspring.com>
In-Reply-To:  <7.0.1.0.2.20100825174104.03776fd0@mindspring.com>
Content-Type: multipart/alternative;

Let me rephrase my question:   Suppose the dataset is as follows:   Group    Item1       Item2       item3 1             1             4 1             2             5 1             3             6 2 2 2

--- On Wed, 8/25/10, Richard Ristow <wrristow@mindspring.com> wrote:

From: Richard Ristow <wrristow@mindspring.com> Subject: Re: How to automatically erase ? To: SPSSX-L@LISTSERV.UGA.EDU Date: Wednesday, 25 August, 2010, 9:51 PM

At 10:55 AM 8/25/2010, Eins Bernardo wrote:

I will do some restructuring of my dataset, then recoding and, subsequently, compute a variable using the following syntax (We will call this syntax A)   SORT CASES BY Target . CASESTOVARS    /ID = Target    /GROUPBY = VARIABLE.

RECODE ITEM1.1 to ITEM2.5 (MISSING=999). MISSING VALUES ITEM1.1 to ITEM2.5 (999).

COMPUTE obs_var1 = var(item1.1,item1.2,item1.3,item1.4,item1.5) . It looks like you want the variances of variables ITEM1 and ITEM2 within each value of variable Target. Why not this (not tested)?

AGGREGATE OUTFILE=*    /BREAK    =Target    /obs_var1 =SD(item1)    /obs_var2 =SD(item2).

COMPUTE obs_var1=obs_var1*obs_var1. COMPUTE obs_var2=obs_var2*obs_var2.

Sorry about taking the standard deviation and then squaring, but AGGREGATE doesn't seem to have Variance as a summarizing function. ===================== 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]


Back to: Top of message | Previous page | Main SPSSX-L page