LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (February 2005)Back to main SPSSX-L pageJoin or leave SPSSX-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Fri, 25 Feb 2005 13:54:08 -0500
Reply-To:     Siraj Ur-rehman <>
Sender:       "SPSSX(r) Discussion" <SPSSX-L@LISTSERV.UGA.EDU>
From:         Siraj Ur-rehman <>
Subject:      Re: Count function
Comments: To: Vanessa Vacchiano <>
Content-Type: text/plain; charset="us-ascii"

Use the mean command instead of count as

Compute avg=mean(m1,m2,m3,m4).


-----Original Message----- From: SPSSX(r) Discussion [mailto:SPSSX-L@LISTSERV.UGA.EDU] On Behalf Of Vanessa Vacchiano Sent: Friday, February 25, 2005 1:49 PM To: SPSSX-L@LISTSERV.UGA.EDU Subject: Count function

I need to sum several variables together (if no more than one in the group is missing a value). Then I need to divide by the number that have a value.

It's something to this effect: if m1=not missing then count = 1 and m2= not missing then count = count +1 etc. After that, I have to compute the sum of m1+ m2 (at least 6 of the 7 variables have a value other than missing) and divide by that count variable.



Back to: Top of message | Previous page | Main SPSSX-L page