Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to exclude certain cases from analysis

2,070 views
Skip to first unread message

Tony

unread,
Aug 6, 2008, 3:25:16 PM8/6/08
to
Hello, I've just started using SPSS so I'm not very good with using the
syntax. Anyways, I'm interested in running a unianova on some cases, but I
want to exclude cases that are positive for a variable. Let's say I have
something like comparing lung density between treatment groups and i want to
exclude all the smokers (I already have a variable called "smoker" with a 1
if they responded yes and a 0 if they responded no). I already have a basic
syntax for doing the unianova, but is there an extra line that I can add in
to make is exclude the smokers (or the non-smokers) from the analysis?
Thanks!


Bruce Weaver

unread,
Aug 6, 2008, 4:08:09 PM8/6/08
to

There are several ways. Which one you use depends on exactly what
you need. If you wish to run only the one analysis on
non-smokers, then this approach is a good one:

temporary.
select if not smoker.
UNIANOVA ...

The temporary selection of non-smokers is only in effect for one
procedure--in this case, your UNIANOVA. If you want the selection
of non-smokers to last longer, you could set a filter. E.g.,

compute f = not smoker.
filter by f.

Now whatever you do will be done using non-smokers only. To use
all cases again, turn off the filter:

filter off.

--
Bruce Weaver
bwe...@lakeheadu.ca
www.angelfire.com/wv/bwhomedir
"When all else fails, RTFM."

Art Kendall

unread,
Aug 9, 2008, 10:15:18 AM8/9/08
to
Bruce is correct about doing exactly what you asked.

The question that comes up for me is why you would not include smoker as
a design factor in the analysis.

Art Kendall
Social Research Consultants

mrdin...@gmail.com

unread,
May 3, 2018, 1:48:41 AM5/3/18
to
Want to get trained on SPSS? Mindmajix provides best SPSS training. Online training by real time experts. Schedule and attend free online demo here! https://mindmajix.com/spss-training
0 new messages