Posted by
Maguin, Eugene on
Jul 21, 2017; 1:09pm
URL: http://spssx-discussion.165.s1.nabble.com/Sum-statistic-in-descriptives-tp5734557p5734562.html
I think there are some other odd things going on, which Jon's reply made me think about. For hypertensive the mean is .064 for an N of 244. So 244*.064=15.616. if there were one case with hypertensive=1, the mean should be .0041. The same story applies to hypotensive; the mean is .499 and but the sum is 110.45. .499*244=121.756 but 110.45/244=.452. I'm inclined to think that while you think both variables are 0/1, there are other values in the dataset. So: frequencies would be a useful command.
Gene Maguin
-----Original Message-----
From: SPSSX(r) Discussion [mailto:
[hidden email]] On Behalf Of Rebecca Burzette
Sent: Thursday, July 20, 2017 2:54 PM
To:
[hidden email]
Subject: Sum statistic in descriptives
I am using IBM SPSS Version 21 and have run into a little problem using DESCRIPTIVES. When I request the SUM stat, I get a 0 for SUM in a variable which I know has 1 case. Here is the syntax I'm using:
DESC HYPERTENSIVE /STAT DEF SUM.
My variable is coded 0 or 1 for absence or presence. The syntax works fine with other variables with the same coding, but with more than 1 case -- e.g., HYPOTENSIVE has an incidence of 110 and its SUM stat = 110. The minimum is 0 and the maximum is 1, so I have no idea what's going on or how to fix it.
Here is the output I get...
Descriptive Statistics
N Minimum Maximum Sum Mean Std. Deviation
HYPERTENSIVE 244 0 1 0 .00 .064
HYPOTENSIVE 244 0 1 110 .45 .499
Thanks,
Rebecca G. Burzette, Ph.D.
Assistant Scientist
Office of Curricular & Student Assessment
2259 Veterinary Medicine
Iowa State University
1800 Christensen Drive
Ames, Iowa 50011-1134
=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the command. To leave the list, send the command SIGNOFF SPSSX-L For a list of commands to manage subscriptions, send the command INFO REFCARD
=====================
To manage your subscription to SPSSX-L, send a message to
[hidden email] (not to SPSSX-L), with no body text except the
command. To leave the list, send the command
SIGNOFF SPSSX-L
For a list of commands to manage subscriptions, send the command
INFO REFCARD