Documentation: Add an example showing how AGGREGATE works
[pspp] / doc / pspp-figures / aggregate.sps
diff --git a/doc/pspp-figures/aggregate.sps b/doc/pspp-figures/aggregate.sps
new file mode 100644 (file)
index 0000000..b84620b
--- /dev/null
@@ -0,0 +1,10 @@
+get file="personnel.sav".
+
+aggregate outfile=* 
+        mode = replace
+        /break= occupation
+        /occ_mean_salaray = mean (salary)
+        /occ_median_salary = median (salary)
+        /occ_std_dev_salary = sd (salary).
+
+list.