|
Can someone help!
How does one get removed from this listserv? Thanks, Tina ----- Original Message ---- From: Albert-jan Roskam <[hidden email]> To: [hidden email] 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 <[hidden email]> 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 |
|
Hi Tina,
- Didn't you read a very recent post by Richard Ristow? - Didn't you keep the wellcome message you received when you joined the list? (detailed instructions on how toleave the list were given there). I suppose the answer to both questions is "NO". TM> Can someone help! TM> How does one get removed from this listserv? OK (again). Basically, there are two ways of leaving the list: 1) Send an email to [hidden email] with no subject, no signature, but only the words: SIGNOFF SPSSX-L (Please, notice the difference between [hidden email] and [hidden email]. DON'T use this last email address to unsubscribe (it's irritating for the other users of the list, and it's useless in order to achieve your goal). 2) If first method fails, go to this page, enter your email address, and click on "Leave the list" http://listserv.uga.edu/cgi-bin/wa?SUBED1=spssx-l&A=1 Goodbye, Marta Garcia-Granero |
|
In reply to this post by Tina Maschi
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:[hidden email]] On Behalf Of Tina Maschi Sent: 26 June 2007 13:58 To: [hidden email] Subject: Re: Remove from listserv. Can someone help! How does one get removed from this listserv? Thanks, Tina ----- Original Message ---- From: Albert-jan Roskam <[hidden email]> To: [hidden email] 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 <[hidden email]> 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 |
| Free forum by Nabble | Edit this page |
