doc: Move output examples from "examples" to "pspp-figures".
authorBen Pfaff <blp@cs.stanford.edu>
Fri, 27 Nov 2020 23:38:07 +0000 (15:38 -0800)
committerBen Pfaff <blp@cs.stanford.edu>
Sat, 28 Nov 2020 02:05:37 +0000 (18:05 -0800)
The Texinfo manual suggests this convention:

     If you want to install image files for use by Info readers too, we
  recommend putting them in a subdirectory like 'FOO-figures' for a
  package FOO.  Copying the files into '$(infodir)/FOO-figures/' should be
  done in your 'Makefile'.

Although it suggests this convention for the installed Info, it helps to
use the convention for the source and build directories, because "makeinfo"
looks for the files at Info build time.

43 files changed:
configure.ac
doc/automake.mk
doc/examples/autorecode.sps [deleted file]
doc/examples/chisquare.sps [deleted file]
doc/examples/compute.sps [deleted file]
doc/examples/count.sps [deleted file]
doc/examples/descriptives.sps [deleted file]
doc/examples/flip.sps [deleted file]
doc/examples/frequencies.sps [deleted file]
doc/examples/independent-samples-t.sps [deleted file]
doc/examples/means.sps [deleted file]
doc/examples/one-sample-t.sps [deleted file]
doc/examples/reliability.sps [deleted file]
doc/examples/split.sps [deleted file]
doc/examples/tutorial1.sps [deleted file]
doc/examples/tutorial2.sps [deleted file]
doc/examples/tutorial3.sps [deleted file]
doc/examples/tutorial4.sps [deleted file]
doc/examples/tutorial5.sps [deleted file]
doc/examples/tutorial6.sps [deleted file]
doc/examples/tutorial7.sps [deleted file]
doc/examples/weight.sps [deleted file]
doc/pspp-figures/autorecode.sps [new file with mode: 0644]
doc/pspp-figures/chisquare.sps [new file with mode: 0644]
doc/pspp-figures/compute.sps [new file with mode: 0644]
doc/pspp-figures/count.sps [new file with mode: 0644]
doc/pspp-figures/descriptives.sps [new file with mode: 0644]
doc/pspp-figures/flip.sps [new file with mode: 0644]
doc/pspp-figures/frequencies.sps [new file with mode: 0644]
doc/pspp-figures/independent-samples-t.sps [new file with mode: 0644]
doc/pspp-figures/means.sps [new file with mode: 0644]
doc/pspp-figures/one-sample-t.sps [new file with mode: 0644]
doc/pspp-figures/reliability.sps [new file with mode: 0644]
doc/pspp-figures/split.sps [new file with mode: 0644]
doc/pspp-figures/tutorial1.sps [new file with mode: 0644]
doc/pspp-figures/tutorial2.sps [new file with mode: 0644]
doc/pspp-figures/tutorial3.sps [new file with mode: 0644]
doc/pspp-figures/tutorial4.sps [new file with mode: 0644]
doc/pspp-figures/tutorial5.sps [new file with mode: 0644]
doc/pspp-figures/tutorial6.sps [new file with mode: 0644]
doc/pspp-figures/tutorial7.sps [new file with mode: 0644]
doc/pspp-figures/weight.sps [new file with mode: 0644]
doc/pspp.texi

index 28ae3e4efde7af50f4aba083706ca9f38a510447..2edf516a95f8e6681181949c67868c580cc60a9b 100644 (file)
@@ -328,7 +328,7 @@ PSPP_CHECK_PREREQS
 AC_CONFIG_FILES(
   [Makefile gl/Makefile po/Makefile tests/atlocal perl-module/lib/PSPP.pm])
 
-AC_CONFIG_COMMANDS([doc/examples/dummy], [:])
+AC_CONFIG_COMMANDS([doc/pspp-figures/dummy], [:])
 
 m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES])
 
index 9f801bc8accbf3c17b41b6fef7101706f4c29a4e..37a62153cb53c02e65b055ecb104d2b0116a0328 100644 (file)
@@ -107,91 +107,91 @@ EXTRA_DIST += \
        doc/pspp-manual.css
 
 
-AM_MAKEINFOFLAGS=-I $(top_srcdir)/doc/examples -I $(top_builddir)/doc/examples
-am__TEXINFO_TEX_DIR=:$(top_srcdir)/doc/examples:$(top_builddir)/doc/examples
+AM_MAKEINFOFLAGS=-I $(top_srcdir)/doc/pspp-figures -I $(top_builddir)/doc/pspp-figures
+am__TEXINFO_TEX_DIR=:$(top_srcdir)/doc/pspp-figures:$(top_builddir)/doc/pspp-figures
 
 ################# Example programs ##############################
 
-EXAMPLE_SYNTAX = \
- doc/examples/autorecode.sps \
- doc/examples/chisquare.sps \
- doc/examples/compute.sps \
- doc/examples/count.sps \
- doc/examples/descriptives.sps \
- doc/examples/flip.sps \
- doc/examples/frequencies.sps \
- doc/examples/means.sps \
- doc/examples/one-sample-t.sps \
- doc/examples/independent-samples-t.sps \
- doc/examples/reliability.sps \
- doc/examples/split.sps \
- doc/examples/tutorial1.sps \
- doc/examples/tutorial2.sps \
- doc/examples/tutorial3.sps \
- doc/examples/tutorial4.sps \
- doc/examples/tutorial5.sps \
- doc/examples/tutorial6.sps \
- doc/examples/tutorial7.sps \
- doc/examples/weight.sps
-
-
-EXTRA_DIST += $(EXAMPLE_SYNTAX)
-
-EXAMPLE_SPVS = $(EXAMPLE_SYNTAX:.sps=.spv) \
-       doc/examples/tutorial2a.spv \
-       doc/examples/tutorial2b.spv \
-       doc/examples/tutorial5a.spv \
-       doc/examples/tutorial5b.spv \
-       doc/examples/tutorial7a.spv \
-       doc/examples/tutorial7b.spv
-EXAMPLE_TXTS = $(EXAMPLE_SPVS:.spv=.txt)
-EXAMPLE_TEXIS = $(EXAMPLE_TXTS:.txt=.texi)
-EXAMPLE_HTML = $(EXAMPLE_SPVS:.spv=.html)
-EXAMPLE_PDF = $(EXAMPLE_SPVS:.spv=.pdf)
-
-example-spv: $(EXAMPLE_SPVS)
-example-txts: $(EXAMPLE_TXTS)
-example-texis: $(EXAMPLE_TEXIS)
-example-html: $(EXAMPLE_HTML)
-example-pdf: $(EXAMPLE_PDF)
-PHONY += example-spv example-txts example-texis example-html example-pdf
-
-$(top_builddir)/doc/pspp.info:  $(EXAMPLE_TEXIS)
-$(top_builddir)/doc/pspp.ps:    $(EXAMPLE_TEXIS)
-$(top_builddir)/doc/pspp.dvi:   $(EXAMPLE_TEXIS)
-$(top_builddir)/doc/pspp.html:  $(EXAMPLE_HTML)
-$(top_builddir)/doc/pspp.pdf:   $(EXAMPLE_TEXIS)
-$(top_builddir)/doc/pspp.xml:   $(EXAMPLE_TEXIS)
-
-CLEANFILES += $(EXAMPLE_TXTS) $(EXAMPLE_SPVS) $(EXAMPLE_TEXIS) $(EXAMPLE_HTML)
+FIGURE_SYNTAX = \
+ doc/pspp-figures/autorecode.sps \
+ doc/pspp-figures/chisquare.sps \
+ doc/pspp-figures/compute.sps \
+ doc/pspp-figures/count.sps \
+ doc/pspp-figures/descriptives.sps \
+ doc/pspp-figures/flip.sps \
+ doc/pspp-figures/frequencies.sps \
+ doc/pspp-figures/means.sps \
+ doc/pspp-figures/one-sample-t.sps \
+ doc/pspp-figures/independent-samples-t.sps \
+ doc/pspp-figures/reliability.sps \
+ doc/pspp-figures/split.sps \
+ doc/pspp-figures/tutorial1.sps \
+ doc/pspp-figures/tutorial2.sps \
+ doc/pspp-figures/tutorial3.sps \
+ doc/pspp-figures/tutorial4.sps \
+ doc/pspp-figures/tutorial5.sps \
+ doc/pspp-figures/tutorial6.sps \
+ doc/pspp-figures/tutorial7.sps \
+ doc/pspp-figures/weight.sps
+
+
+EXTRA_DIST += $(FIGURE_SYNTAX)
+
+FIGURE_SPVS = $(FIGURE_SYNTAX:.sps=.spv) \
+       doc/pspp-figures/tutorial2a.spv \
+       doc/pspp-figures/tutorial2b.spv \
+       doc/pspp-figures/tutorial5a.spv \
+       doc/pspp-figures/tutorial5b.spv \
+       doc/pspp-figures/tutorial7a.spv \
+       doc/pspp-figures/tutorial7b.spv
+FIGURE_TXTS = $(FIGURE_SPVS:.spv=.txt)
+FIGURE_TEXIS = $(FIGURE_TXTS:.txt=.texi)
+FIGURE_HTML = $(FIGURE_SPVS:.spv=.html)
+FIGURE_PDF = $(FIGURE_SPVS:.spv=.pdf)
+
+figure-spv: $(FIGURE_SPVS)
+figure-txts: $(FIGURE_TXTS)
+figure-texis: $(FIGURE_TEXIS)
+figure-html: $(FIGURE_HTML)
+figure-pdf: $(FIGURE_PDF)
+PHONY += figure-spv figure-txts figure-texis figure-html figure-pdf
+
+$(top_builddir)/doc/pspp.info:  $(FIGURE_TEXIS)
+$(top_builddir)/doc/pspp.ps:    $(FIGURE_TEXIS)
+$(top_builddir)/doc/pspp.dvi:   $(FIGURE_TEXIS)
+$(top_builddir)/doc/pspp.html:  $(FIGURE_HTML)
+$(top_builddir)/doc/pspp.pdf:   $(FIGURE_TEXIS)
+$(top_builddir)/doc/pspp.xml:   $(FIGURE_TEXIS)
+
+CLEANFILES += $(FIGURE_TXTS) $(FIGURE_SPVS) $(FIGURE_TEXIS) $(FIGURE_HTML)
 SUFFIXES += .sps .spv .txt .html .texi .pdf
 
 # Use pspp to process a syntax file into an output file.
 pspp = src/ui/terminal/pspp
-$(EXAMPLE_SPVS): $(pspp)$(EXEEXT)
+$(FIGURE_SPVS): $(pspp)$(EXEEXT)
 .sps.spv:
        $(AM_V_GEN)(cd $(top_srcdir)/examples \
-         && $(abs_top_builddir)/$(pspp) ../doc/examples/$(<F) -o - -O format=spv) > $@.tmp
+         && $(abs_top_builddir)/$(pspp) ../doc/pspp-figures/$(<F) -o - -O format=spv) > $@.tmp
        $(AM_V_at)mv $@.tmp $@
 
 # In some cases, the tutorial only wants some parts of the output.
 pspp_output = utilities/pspp-output
 convert = $(AM_V_GEN)$(pspp_output) convert $< $@
-doc/examples/tutorial2a.spv: doc/examples/tutorial2.spv $(pspp_output)
+doc/pspp-figures/tutorial2a.spv: doc/pspp-figures/tutorial2.spv $(pspp_output)
        $(convert) --command='Descriptives'
-doc/examples/tutorial2b.spv: doc/examples/tutorial2.spv $(pspp_output)
+doc/pspp-figures/tutorial2b.spv: doc/pspp-figures/tutorial2.spv $(pspp_output)
        $(convert) --label='Extreme Values'
-doc/examples/tutorial5a.spv: doc/examples/tutorial5.spv $(pspp_output)
+doc/pspp-figures/tutorial5a.spv: doc/pspp-figures/tutorial5.spv $(pspp_output)
        $(convert) --commands=examine --nth-command=1 --labels=descriptives
-doc/examples/tutorial5b.spv: doc/examples/tutorial5.spv $(pspp_output)
+doc/pspp-figures/tutorial5b.spv: doc/pspp-figures/tutorial5.spv $(pspp_output)
        $(convert) --commands=examine --nth-command=2 --labels=descriptives
-doc/examples/tutorial7a.spv: doc/examples/tutorial7.spv $(pspp_output)
+doc/pspp-figures/tutorial7a.spv: doc/pspp-figures/tutorial7.spv $(pspp_output)
        $(convert) --commands=regression --nth-command=1 --subtypes=coefficients
-doc/examples/tutorial7b.spv: doc/examples/tutorial7.spv $(pspp_output)
+doc/pspp-figures/tutorial7b.spv: doc/pspp-figures/tutorial7.spv $(pspp_output)
        $(convert) --commands=regression --nth-command=2 --subtypes=coefficients
 
 # Convert an output file into a text file or HTML file.
-$(EXAMPLE_TXTS) $(EXAMPLE_HTML): $(pspp_output)
+$(FIGURE_TXTS) $(FIGURE_HTML): $(pspp_output)
 .spv.txt:
        $(AM_V_GEN)utilities/pspp-output convert $< $@
 .spv.pdf:
diff --git a/doc/examples/autorecode.sps b/doc/examples/autorecode.sps
deleted file mode 100644 (file)
index 4c0b3f3..0000000
+++ /dev/null
@@ -1,20 +0,0 @@
-get file='personnel.sav'.
-
-* Correct a typing error in the original file.
-do if occupation = "Scrientist".
- compute occupation = "Scientist".
-end if.
-
-autorecode
-       variables = occupation into occ
-       /blank = missing.
-
-* Delete the old variable.
-delete variables occupation.
-
-* Rename the new variable to the old variable's name.
-rename variables (occ = occupation).
-
-* Inspect the new variable.
-display dictionary /variables=occupation.
-
diff --git a/doc/examples/chisquare.sps b/doc/examples/chisquare.sps
deleted file mode 100644 (file)
index e8428f1..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-get file='physiology.sav'.
-
-npar test
-     /chisquare=sex.
diff --git a/doc/examples/compute.sps b/doc/examples/compute.sps
deleted file mode 100644 (file)
index af4b505..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-get file='physiology.sav'.
-
-* height is in mm so we must divide by 1000 to get metres.
-compute bmi = weight / (height/1000)**2.
-variable label bmi "Body Mass Index".
-
-descriptives /weight height bmi.
diff --git a/doc/examples/count.sps b/doc/examples/count.sps
deleted file mode 100644 (file)
index 4897d79..0000000
+++ /dev/null
@@ -1,5 +0,0 @@
-get file="hotel.sav".
-
-count low_counts = v1 v2 v3 (low thru 2).
-
-list /variables v1 v2 v3 low_counts.
\ No newline at end of file
diff --git a/doc/examples/descriptives.sps b/doc/examples/descriptives.sps
deleted file mode 100644 (file)
index 6289763..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-get file='physiology.sav'.
-
-descriptives
-        /variables = height temperature
-        /save.
-
-descriptives
-        /variables = zheight ztemperature.
diff --git a/doc/examples/flip.sps b/doc/examples/flip.sps
deleted file mode 100644 (file)
index daac3e0..0000000
+++ /dev/null
@@ -1,16 +0,0 @@
-data list notable list /heading (a16) v1 v2 v3 v4 v5 v6
-begin data.
-date-of-birth 1970 1989 2001 1966 1976 1982
-sex 1 0 0 1 0 1
-score 10 10 9 3 8 9
-end data.
-
-echo 'Before FLIP:'.
-display variables.
-list.
-
-flip /variables = all /newnames = heading.
-
-echo 'After FLIP:'.
-display variables.
-list.
\ No newline at end of file
diff --git a/doc/examples/frequencies.sps b/doc/examples/frequencies.sps
deleted file mode 100644 (file)
index 7c639e6..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-get file='personnel.sav'.
-
-frequencies /variables = sex occupation
-            /statistics = none.
diff --git a/doc/examples/independent-samples-t.sps b/doc/examples/independent-samples-t.sps
deleted file mode 100644 (file)
index 8fb93f7..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-get file='physiology.sav'.
-
-select if (height >= 200).
-
-t-test /variables = height
-       /groups = sex(0,1).
diff --git a/doc/examples/means.sps b/doc/examples/means.sps
deleted file mode 100644 (file)
index 26f39ef..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-get file='repairs.sav'.
-
-means tables = mtbf
-      by factory by environment.
diff --git a/doc/examples/one-sample-t.sps b/doc/examples/one-sample-t.sps
deleted file mode 100644 (file)
index b3bc56f..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-get file='physiology.sav'.
-
-select if (weight > 0).
-
-t-test testval = 76.8
-       /variables = weight.
diff --git a/doc/examples/reliability.sps b/doc/examples/reliability.sps
deleted file mode 100644 (file)
index 97b24b5..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-get file="hotel.sav".
-
-* Recode V3 and V5 inverting the sense of the values.
-compute v3 = 6 - v3.
-compute v5 = 6 - v5.
-
-reliability
-       /variables= all
-       /model=alpha.
diff --git a/doc/examples/split.sps b/doc/examples/split.sps
deleted file mode 100644 (file)
index 65807cd..0000000
+++ /dev/null
@@ -1,9 +0,0 @@
-get file='horticulture.sav'.
-
-* Ensure cases are sorted before splitting.
-sort cases by treatment.
-
-split file by treatment.
-
-* Run descriptives on the yield variable
-descriptives /variable = yield.
diff --git a/doc/examples/tutorial1.sps b/doc/examples/tutorial1.sps
deleted file mode 100644 (file)
index 3fc7fbc..0000000
+++ /dev/null
@@ -1,8 +0,0 @@
-data list list notable /forename (A12) height.
-begin data.
-Ahmed 188
-Bertram 167
-Catherine 134.231
-David 109.1
-end data
-list /format=numbered.
\ No newline at end of file
diff --git a/doc/examples/tutorial2.sps b/doc/examples/tutorial2.sps
deleted file mode 100644 (file)
index bdc23ca..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-get file='physiology.sav'.
-descriptives sex, weight, height.
-examine height, weight /statistics=extreme(3).
\ No newline at end of file
diff --git a/doc/examples/tutorial3.sps b/doc/examples/tutorial3.sps
deleted file mode 100644 (file)
index 7613f01..0000000
+++ /dev/null
@@ -1,2 +0,0 @@
-get file='hotel.sav'.
-display dictionary.
\ No newline at end of file
diff --git a/doc/examples/tutorial4.sps b/doc/examples/tutorial4.sps
deleted file mode 100644 (file)
index 562da9a..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-get file='hotel.sav'.
-compute v3 = 6 - v3.
-compute v5 = 6 - v5.
-reliability variables=v1, v3, v4.
diff --git a/doc/examples/tutorial5.sps b/doc/examples/tutorial5.sps
deleted file mode 100644 (file)
index ced90da..0000000
+++ /dev/null
@@ -1,6 +0,0 @@
-get file='repairs.sav'.
-examine mtbf
- /statistics=descriptives.
-compute mtbf_ln = ln (mtbf).
-examine mtbf_ln
- /statistics=descriptives.
diff --git a/doc/examples/tutorial6.sps b/doc/examples/tutorial6.sps
deleted file mode 100644 (file)
index 889f77f..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-get file='physiology.sav'.
-recode height (179 = SYSMIS).
-t-test group=sex(0,1) /variables = height temperature.
diff --git a/doc/examples/tutorial7.sps b/doc/examples/tutorial7.sps
deleted file mode 100644 (file)
index 07858d2..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-get file='repairs.sav'.
-regression /variables = mtbf duty_cycle /dependent = mttr.
-regression /variables = mtbf /dependent = mttr.
diff --git a/doc/examples/weight.sps b/doc/examples/weight.sps
deleted file mode 100644 (file)
index 6fe576e..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-data list notable list /item (a16) quantity (f8.0).
-begin   data
-nuts    345
-screws  10034
-washers 32012
-bolts   876
-end data.
-
-echo 'Unweighted frequency table'.
-frequencies /variables = item /format=dfreq.
-
-weight by quantity.
-
-echo 'Weighted frequency table'.
-frequencies /variables = item /format=dfreq.
diff --git a/doc/pspp-figures/autorecode.sps b/doc/pspp-figures/autorecode.sps
new file mode 100644 (file)
index 0000000..4c0b3f3
--- /dev/null
@@ -0,0 +1,20 @@
+get file='personnel.sav'.
+
+* Correct a typing error in the original file.
+do if occupation = "Scrientist".
+ compute occupation = "Scientist".
+end if.
+
+autorecode
+       variables = occupation into occ
+       /blank = missing.
+
+* Delete the old variable.
+delete variables occupation.
+
+* Rename the new variable to the old variable's name.
+rename variables (occ = occupation).
+
+* Inspect the new variable.
+display dictionary /variables=occupation.
+
diff --git a/doc/pspp-figures/chisquare.sps b/doc/pspp-figures/chisquare.sps
new file mode 100644 (file)
index 0000000..e8428f1
--- /dev/null
@@ -0,0 +1,4 @@
+get file='physiology.sav'.
+
+npar test
+     /chisquare=sex.
diff --git a/doc/pspp-figures/compute.sps b/doc/pspp-figures/compute.sps
new file mode 100644 (file)
index 0000000..af4b505
--- /dev/null
@@ -0,0 +1,7 @@
+get file='physiology.sav'.
+
+* height is in mm so we must divide by 1000 to get metres.
+compute bmi = weight / (height/1000)**2.
+variable label bmi "Body Mass Index".
+
+descriptives /weight height bmi.
diff --git a/doc/pspp-figures/count.sps b/doc/pspp-figures/count.sps
new file mode 100644 (file)
index 0000000..4897d79
--- /dev/null
@@ -0,0 +1,5 @@
+get file="hotel.sav".
+
+count low_counts = v1 v2 v3 (low thru 2).
+
+list /variables v1 v2 v3 low_counts.
\ No newline at end of file
diff --git a/doc/pspp-figures/descriptives.sps b/doc/pspp-figures/descriptives.sps
new file mode 100644 (file)
index 0000000..6289763
--- /dev/null
@@ -0,0 +1,8 @@
+get file='physiology.sav'.
+
+descriptives
+        /variables = height temperature
+        /save.
+
+descriptives
+        /variables = zheight ztemperature.
diff --git a/doc/pspp-figures/flip.sps b/doc/pspp-figures/flip.sps
new file mode 100644 (file)
index 0000000..daac3e0
--- /dev/null
@@ -0,0 +1,16 @@
+data list notable list /heading (a16) v1 v2 v3 v4 v5 v6
+begin data.
+date-of-birth 1970 1989 2001 1966 1976 1982
+sex 1 0 0 1 0 1
+score 10 10 9 3 8 9
+end data.
+
+echo 'Before FLIP:'.
+display variables.
+list.
+
+flip /variables = all /newnames = heading.
+
+echo 'After FLIP:'.
+display variables.
+list.
\ No newline at end of file
diff --git a/doc/pspp-figures/frequencies.sps b/doc/pspp-figures/frequencies.sps
new file mode 100644 (file)
index 0000000..7c639e6
--- /dev/null
@@ -0,0 +1,4 @@
+get file='personnel.sav'.
+
+frequencies /variables = sex occupation
+            /statistics = none.
diff --git a/doc/pspp-figures/independent-samples-t.sps b/doc/pspp-figures/independent-samples-t.sps
new file mode 100644 (file)
index 0000000..8fb93f7
--- /dev/null
@@ -0,0 +1,6 @@
+get file='physiology.sav'.
+
+select if (height >= 200).
+
+t-test /variables = height
+       /groups = sex(0,1).
diff --git a/doc/pspp-figures/means.sps b/doc/pspp-figures/means.sps
new file mode 100644 (file)
index 0000000..26f39ef
--- /dev/null
@@ -0,0 +1,4 @@
+get file='repairs.sav'.
+
+means tables = mtbf
+      by factory by environment.
diff --git a/doc/pspp-figures/one-sample-t.sps b/doc/pspp-figures/one-sample-t.sps
new file mode 100644 (file)
index 0000000..b3bc56f
--- /dev/null
@@ -0,0 +1,6 @@
+get file='physiology.sav'.
+
+select if (weight > 0).
+
+t-test testval = 76.8
+       /variables = weight.
diff --git a/doc/pspp-figures/reliability.sps b/doc/pspp-figures/reliability.sps
new file mode 100644 (file)
index 0000000..97b24b5
--- /dev/null
@@ -0,0 +1,9 @@
+get file="hotel.sav".
+
+* Recode V3 and V5 inverting the sense of the values.
+compute v3 = 6 - v3.
+compute v5 = 6 - v5.
+
+reliability
+       /variables= all
+       /model=alpha.
diff --git a/doc/pspp-figures/split.sps b/doc/pspp-figures/split.sps
new file mode 100644 (file)
index 0000000..65807cd
--- /dev/null
@@ -0,0 +1,9 @@
+get file='horticulture.sav'.
+
+* Ensure cases are sorted before splitting.
+sort cases by treatment.
+
+split file by treatment.
+
+* Run descriptives on the yield variable
+descriptives /variable = yield.
diff --git a/doc/pspp-figures/tutorial1.sps b/doc/pspp-figures/tutorial1.sps
new file mode 100644 (file)
index 0000000..3fc7fbc
--- /dev/null
@@ -0,0 +1,8 @@
+data list list notable /forename (A12) height.
+begin data.
+Ahmed 188
+Bertram 167
+Catherine 134.231
+David 109.1
+end data
+list /format=numbered.
\ No newline at end of file
diff --git a/doc/pspp-figures/tutorial2.sps b/doc/pspp-figures/tutorial2.sps
new file mode 100644 (file)
index 0000000..bdc23ca
--- /dev/null
@@ -0,0 +1,3 @@
+get file='physiology.sav'.
+descriptives sex, weight, height.
+examine height, weight /statistics=extreme(3).
\ No newline at end of file
diff --git a/doc/pspp-figures/tutorial3.sps b/doc/pspp-figures/tutorial3.sps
new file mode 100644 (file)
index 0000000..7613f01
--- /dev/null
@@ -0,0 +1,2 @@
+get file='hotel.sav'.
+display dictionary.
\ No newline at end of file
diff --git a/doc/pspp-figures/tutorial4.sps b/doc/pspp-figures/tutorial4.sps
new file mode 100644 (file)
index 0000000..562da9a
--- /dev/null
@@ -0,0 +1,4 @@
+get file='hotel.sav'.
+compute v3 = 6 - v3.
+compute v5 = 6 - v5.
+reliability variables=v1, v3, v4.
diff --git a/doc/pspp-figures/tutorial5.sps b/doc/pspp-figures/tutorial5.sps
new file mode 100644 (file)
index 0000000..ced90da
--- /dev/null
@@ -0,0 +1,6 @@
+get file='repairs.sav'.
+examine mtbf
+ /statistics=descriptives.
+compute mtbf_ln = ln (mtbf).
+examine mtbf_ln
+ /statistics=descriptives.
diff --git a/doc/pspp-figures/tutorial6.sps b/doc/pspp-figures/tutorial6.sps
new file mode 100644 (file)
index 0000000..889f77f
--- /dev/null
@@ -0,0 +1,3 @@
+get file='physiology.sav'.
+recode height (179 = SYSMIS).
+t-test group=sex(0,1) /variables = height temperature.
diff --git a/doc/pspp-figures/tutorial7.sps b/doc/pspp-figures/tutorial7.sps
new file mode 100644 (file)
index 0000000..07858d2
--- /dev/null
@@ -0,0 +1,3 @@
+get file='repairs.sav'.
+regression /variables = mtbf duty_cycle /dependent = mttr.
+regression /variables = mtbf /dependent = mttr.
diff --git a/doc/pspp-figures/weight.sps b/doc/pspp-figures/weight.sps
new file mode 100644 (file)
index 0000000..6fe576e
--- /dev/null
@@ -0,0 +1,15 @@
+data list notable list /item (a16) quantity (f8.0).
+begin   data
+nuts    345
+screws  10034
+washers 32012
+bolts   876
+end data.
+
+echo 'Unweighted frequency table'.
+frequencies /variables = item /format=dfreq.
+
+weight by quantity.
+
+echo 'Weighted frequency table'.
+frequencies /variables = item /format=dfreq.
index e96ca4c1ff9f4543610db2077d5c50eb3fcfd94f..69146976918fb69789ea732ce0ceaa2e2ed98a1e 100644 (file)
@@ -25,7 +25,7 @@ graphic user interface
 @end html
 @cartouche
 @smallexample
-@verbatiminclude \FILE\
+@verbatiminclude pspp-figures/\FILE\
 @end smallexample
 @end cartouche
 @html