This post was updated on .
CONTENTS DELETED
The author has deleted this message.
|
Administrator
|
I think you mean "within" cases rather than among. Here's one option:
1. Restructure from wide to long with VARSTOCASES. 2. Flag and delete duplicate cases (Data - Identify Duplicate Cases). 3. Restructure back to wide format (CASESTOVARS) Alternatively, you could do something with VECTOR & LOOP in the original wide format. HTH.
--
Bruce Weaver bweaver@lakeheadu.ca http://sites.google.com/a/lakeheadu.ca/bweaver/ "When all else fails, RTFM." PLEASE NOTE THE FOLLOWING: 1. My Hotmail account is not monitored regularly. To send me an e-mail, please use the address shown above. 2. The SPSSX Discussion forum on Nabble is no longer linked to the SPSSX-L listserv administered by UGA (https://listserv.uga.edu/). |
Administrator
|
In reply to this post by prasad
If this is the same data as last week then you are better deduping a long structure than a wide one.
Think AGGREGATE or a SORT followed by MATCH (see FIRST and LAST) or LAG. I leave it to you to think about this and sort out the details rather than just hand you a fish. --
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me. --- "Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis." Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?" |
Administrator
|
In reply to this post by Bruce Weaver
"Alternatively, you could do something with VECTOR & LOOP in the original wide format. "
A truly hellish proposition ;-)
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me. --- "Nolite dare sanctum canibus neque mittatis margaritas vestras ante porcos ne forte conculcent eas pedibus suis." Cum es damnatorum possederunt porcos iens ut salire off sanguinum cliff in abyssum?" |
In reply to this post by David Marso
Hi
I am not in the office right now - I will be back Monday October 22nd and respond to your mail
Best regards Søren
|
In reply to this post by Bruce Weaver
Thanks Bruce, Yes, within cases. Will try VARSTOCASES and restructure back. Prasad From: Bruce Weaver [via SPSSX Discussion] [ml-node+[hidden email]]
Sent: Monday, 15 October 2012 10:27 PM To: Prasad Nishtala Subject: Re: Removing duplicate values in cases I think you mean "within" cases rather than among. Here's one option:
1. Restructure from wide to long with VARSTOCASES. 2. Flag and delete duplicate cases (Data - Identify Duplicate Cases). 3. Restructure back to wide format (CASESTOVARS) Alternatively, you could do something with VECTOR & LOOP in the original wide format. HTH.
--
Bruce Weaver [hidden email] http://sites.google.com/a/lakeheadu.ca/bweaver/ "When all else fails, RTFM." NOTE: My Hotmail account is not monitored regularly. To send me an e-mail, please use the address shown above. If you reply to this email, your message will be added to the discussion below:
http://spssx-discussion.1045642.n5.nabble.com/Removing-duplicate-values-in-cases-tp5715639p5715643.html
|
In reply to this post by David Marso
Thanks David, I will work out the rest. Cheers Prasad From: David Marso [via SPSSX Discussion] [ml-node+[hidden email]]
Sent: Monday, 15 October 2012 10:29 PM To: Prasad Nishtala Subject: Re: Removing duplicate values in cases If this is the same data as last week then you are better deduping a long structure than a wide one.
Think AGGREGATE or a SORT followed by MATCH (see FIRST and LAST) or LAG. I leave it to you to think about this and sort out the details rather than just hand you a fish. --
Please reply to the list and not to my personal email.
Those desiring my consulting or training services please feel free to email me. If you reply to this email, your message will be added to the discussion below:
http://spssx-discussion.1045642.n5.nabble.com/Removing-duplicate-values-in-cases-tp5715639p5715644.html
|
Also, Raynald has a posting (from David) that addresses this. See the link below for David's solution. I believe the first solution that David provides should do it - without the final compute (that tally's the responses).
http://www.spsstools.net/Syntax/MultipleResp/CountUniqueOccurencesOfAMultipleResponse.txt Sach |
Hi Sach,
Managed to solve it as per David's input. Thanks Prasad From: sdubois [via SPSSX Discussion] [ml-node+[hidden email]]
Sent: Wednesday, 17 October 2012 2:45 AM To: Prasad Nishtala Subject: RE: Removing duplicate values in cases Also, Raynald has a posting (from David) that addresses this. See the link below for David's solution. I believe the first solution that David provides should do it - without the final compute (that tally's the responses).
http://www.spsstools.net/Syntax/MultipleResp/CountUniqueOccurencesOfAMultipleResponse.txt Sach If you reply to this email, your message will be added to the discussion below:
http://spssx-discussion.1045642.n5.nabble.com/Removing-duplicate-values-in-cases-tp5715639p5715677.html
|
Free forum by Nabble | Edit this page |