1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
* To combine Mean  SD.

GET
  FILE='C:\Program Files\SPSS\World95.sav'.

* Basic Tables (this table will be modified by the script).
TABLES
  /FORMAT BLANK MISSING('.')
  /OBSERVATION calories
  /TABLES region > calories
  BY (STATISTICS)
  /STATISTICS
  count( ( F5.0 ))
  mean( )
  stddev( ).

* Basic Tables (this table will NOT be modified by the script because the
last two columns are not Mean and Std Deviation .
TABLES
  /FORMAT BLANK MISSING('.')
  /OBSERVATION calories
  /TABLES region > calories
  BY (STATISTICS)
  /STATISTICS
  count( ( F5.0 ))
  mean( )
  stddev( )
  median().


SCRIPT "C:\temp\CombineMeanAndSD.SBS".