Hi, can someone please help me here, its an SPSS question
how do I do this:
I just want to run descriptives over my whole dataset but exclude data from cases 2,5 and 7?
I can't use the "if condition is satisfied", "random..", "based on time or case range" and I'm not sure how to use "filter variable".
thanks
satchi
Hi Satchi!
Have you numbered the cases in their own column - i.e. do you have a column called "caseNo" or similar? If so you should then be able to select cases. I assume you can't at the mo, because you are just using them how they are numbered in SPSS (without defining them in your own column)
ok go to Data > Select Cases > if condition satisfies
Then put across your 'number' variable to the right hand box. Then Click the symbol ~= then the number, then the & sign so...
Number ~= 2 & Number ~= 5 & Number ~= 7
Then run it - you should have excluded analysis on 2, 5 and 7.
Hope it works!
======= Date Modified 26 Apr 2010 11:24:04 =======
If you want to know whether you have excluded those cases from analysis then the number on the left column (the colum in grey) wil have a slash through it. The numbers/values will still be there, but SPSS just won't run analysis on them.
http://www.learnhigher.ac.uk/analysethis/images/spssgraphfour.jpg
See the slashes through the grey column on the left? - if you have excluded them then this slash will appear on the correct case and then whatever you do next e.g. t-test, regression etc. won't include these cases, not until you go back to data>select cases and open it back up to ALL cases being analysed.
Great! Just make sure that if you want to go back and use these cases in the analysis, to undo what you've done (i.e. unexclude them) by going back to data > select cases. (up)(up)(up)
make sure you are using the ~= sign NOT the = sign. You are telling SPSS "I want to do analysis on everything that doesn't equal ??"
So
Number ~= 2 & Number ~= 5 & Number ~= 7
PostgraduateForum Is a trading name of FindAUniversity Ltd
FindAUniversity Ltd, 77 Sidney St, Sheffield, S1 4RG, UK. Tel +44 (0) 114 268 4940 Fax: +44 (0) 114 268 5766
An active and supportive community.
Support and advice from your peers.
Your postgraduate questions answered.
Use your experience to help others.
Enter your email address below to get started with your forum account
Enter your username below to login to your account
An email has been sent to your email account along with instructions on how to reset your password. If you do not recieve your email, or have any futher problems accessing your account, then please contact our customer support.
or continue as guest
To ensure all features on our website work properly, your computer, tablet or mobile needs to accept cookies. Our cookies don’t store your personal information, but provide us with anonymous information about use of the website and help us recognise you so we can offer you services more relevant to you. For more information please read our privacy policy
Agree Agree