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 (June 2007)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 26 Jun 2007 14:44:40 -0300
Reply-To:     Hector Maletta <hmaletta@fibertel.com.ar>
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         Hector Maletta <hmaletta@fibertel.com.ar>
Subject:      Re: Remove from listserv.
Comments: To: Tina Maschi <tinamaschi@yahoo.com>
In-Reply-To:  <605172.24470.qm@web30112.mail.mud.yahoo.com>
Content-Type: text/plain; charset="iso-8859-1"

You can remove yourself any day, Tina. You received a message when you subscribed, telling you exactly how. In essence, you should address the list SERVER, not us, humble list members. Just one or two days ago, if you care to look back, you will find another lonely soul asking the same question, and getting the right answer. Just as an exercise, do try and find by yourself either way.

Hector

-----Original Message----- From: SPSSX(r) Discussion [mailto:SPSSX-L@LISTSERV.UGA.EDU] On Behalf Of Tina Maschi Sent: 26 June 2007 13:58 To: SPSSX-L@LISTSERV.UGA.EDU Subject: Re: Remove from listserv.

Can someone help! How does one get removed from this listserv? Thanks, Tina

----- Original Message ---- From: Albert-jan Roskam <fomcl@yahoo.com> To: SPSSX-L@LISTSERV.UGA.EDU Sent: Tuesday, June 26, 2007 11:19:48 AM Subject: Re: Matrix question

Hi Marta & Brian,

You taught me well, Jedi master ;-)

Thanks a lot! It's a fascinating, and very useful command! I wouldn't have been able to come up with your solution myself.

Best wishes, Albert-Jan

--- Marta Garcia-Granero <mgarciagranero@gmail.com> wrote:

> Hi Albert-jan, > > Con fecha martes, 26 de junio de 2007, 15:14:37, > escribió: > > AjR> I just started using the MATRIX command for the > first > AjR> time and I have a question about this. > > Wellcome to the dark side, my "padawan" (did you see > the Star Wars > trilogies?) > > AjR> I want to subtract to matrices/files (say file > X and > AjR> file Y) which have an identical layout (numbers > of > AjR> rows and colunms are the same). All variables > are of > AjR> the numerical type. Missing values are coded as > AjR> '99999999'. Of course, I don't want to > calculate the > AjR> difference when either of the cells is a > missing > AjR> value. The syntax below calculates the > difference > AjR> matrix, but something goes wrong with the > missing > AjR> values. Can anyone help me correct this syntax? > Or > AjR> should I just rephrase this question and say > "Martha, > AjR> could you help me with this MATRIX question"? > ;-) > > MATRIX. > * Sample data, replace by your own *. > COMPUTE m_filex={1,2,3,99999999; > 5,6,7,8; > 9,10,11,99999999}. > COMPUTE m_filey={11,10,9,99999999; > 7,6,5,4; > 3,2,1,99999999}. > * Since m_filex and m_filey are conformant, you just > need to know the number > of rows and columns of one of them *. > COMPUTE k=NROW(m_filex). > COMPUTE m=NCOL(m_filex). > * Initialize empty difference matrix with missing > values *. > COMPUTE d=MAKE(k,m,99999999). > * Now, elementwise inspection of every element to > replace value in difference > matrix only if no value is missing in m_filex/y *. > LOOP i = 1 TO k. > . LOOP j=1 TO m. > . DO IF (m_filex(i,j) NE 99999999) AND > (m_filey(i,j) NE 99999999). > * Compute a single element, not the whole matrix *. > . COMPUTE d(i,j) = m_filex(i,j) - m_filey(i,j). > . END IF. > . END LOOP. > END LOOP. > * save d / outfile = > 'd:\temp\difference_matrix.sav'. > PRINT d. > END MATRIX. > > Best regrads, > Marta >

Cheers! Albert-Jan

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Did you know that 87.166253% of all statistics claim a precision of results that is not justified by the method employed? [HELMUT RICHTER]

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

____________________________________________________________________________ ________ Get the Yahoo! toolbar and be alerted to new email wherever you're surfing. http://new.toolbar.yahoo.com/toolbar/features/mail/index.php

____________________________________________________________________________ ________ Bored stiff? Loosen up... Download and play hundreds of games for free on Yahoo! Games. http://games.yahoo.com/games/front


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