List mates:

I have such an easy question that I can't believe I'm asking it.  It's so simple that I guess SPSS's web people could never fathom that someone would need to ask.

I've coded missing data as "-1."  I've specified in the Variable View that "-1" stands for missing data.  I want to create new variables (summing items on a scale).  I've written the syntax:
~~~
COMPUTE GRAT = SUM (g101, g102, g103r, g104, g105, g106r).
VARIABLE LABEL GRAT 'GQ6 Gratitude Scale'.
FORMAT GRAT (f1.0).
EXECUTE.
~~~
But I need to specify that if one of the variables in the SUM statement has a missing value, then the new variable GRAT also should be missing.  How do I do that?

Help!  I seem to be the only prof in my college today, so I don't have anyone around here to ask.  Thanks.

Lise

~~~
Lise DeShea, Ph.D.
Assistant Professor
Educational and Counseling Psychology Department
University of Kentucky
237 Dickey Hall
Lexington KY 40506
Email:  [EMAIL PROTECTED]
Phone:  (859) 257-9884

"... for only by varied iteration can alien conceptions be forced on reluctant minds."
                -- Herbert Spencer, in the preface to The Data of Ethics, 1881.

Reply via email to