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

SPSS syntax question - how do I refer to an empty or null cell?

6,073 views
Skip to first unread message

D.M.

unread,
Dec 12, 2005, 12:06:21 PM12/12/05
to
I'm trying to compute new variables based on the contents of other
variables. If the cell is missing data, I still want it to be
included. Is there a way to reference a cell that contains no data?
I've tried IsNull, "", etc.

I don't want to RECODE missing data as zeros, I want to leave the
original variables intact.

Thanks,
D.M.

Richard Ulrich

unread,
Dec 12, 2005, 1:50:34 PM12/12/05
to

Like this?

If (missing(vara) and varb=2) varc=3 .


--
Rich Ulrich, wpi...@pitt.edu
http://www.pitt.edu/~wpilib/index.html

andrej...@gmail.com

unread,
Dec 13, 2005, 9:47:17 AM12/13/05
to

What you are looking for is also referred to as the value $SYSMIS (one
of the system variables). The value of course only refers to the system
missing values. You can either use the SYSMIS() OR MISSING() functions
or u can use $SYSMIS as the specification of the value as in IF
(a=$SYSMIS) b=1.

hth

A

0 new messages