COMPUTE GRAT = SUM.6 (g101, g102, g103r, g104, g105, g106r). many SPSS within-case statistical functions allow you to specify how many of the argument-variables must be present.
COMPUTE GRAT2 = mean.4 (g101, g102, g103r, g104, g105, g106r). would give you a score that was on the original response metric of the items as long as at least 4 of the items were present. Hope this helps. Art [EMAIL PROTECTED] Social Research Consultants University Park, MD USA (301) 864-5570 Lise DeShea wrote: > 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. > . . ================================================================= Instructions for joining and leaving this list, remarks about the problem of INAPPROPRIATE MESSAGES, and archives are available at: . http://jse.stat.ncsu.edu/ . =================================================================
