From: Ben Pfaff Date: Fri, 27 Nov 2020 23:38:07 +0000 (-0800) Subject: doc: Move output examples from "examples" to "pspp-figures". X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6014da385d5f3f2a3971f0049d2d54c0dc6e95f8;hp=1edd8caa445f353489acae7c76f3670313ae1cb5;p=pspp doc: Move output examples from "examples" to "pspp-figures". 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. --- diff --git a/configure.ac b/configure.ac index 28ae3e4efd..2edf516a95 100644 --- a/configure.ac +++ b/configure.ac @@ -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]) diff --git a/doc/automake.mk b/doc/automake.mk index 9f801bc8ac..37a62153cb 100644 --- a/doc/automake.mk +++ b/doc/automake.mk @@ -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/$( $@.tmp + && $(abs_top_builddir)/$(pspp) ../doc/pspp-figures/$( $@.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 index 4c0b3f3d25..0000000000 --- a/doc/examples/autorecode.sps +++ /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 index e8428f16b1..0000000000 --- a/doc/examples/chisquare.sps +++ /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 index af4b50526c..0000000000 --- a/doc/examples/compute.sps +++ /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 index 4897d7912c..0000000000 --- a/doc/examples/count.sps +++ /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 index 6289763330..0000000000 --- a/doc/examples/descriptives.sps +++ /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 index daac3e02f3..0000000000 --- a/doc/examples/flip.sps +++ /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 index 7c639e687e..0000000000 --- a/doc/examples/frequencies.sps +++ /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 index 8fb93f7d76..0000000000 --- a/doc/examples/independent-samples-t.sps +++ /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 index 26f39ef95c..0000000000 --- a/doc/examples/means.sps +++ /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 index b3bc56f9a8..0000000000 --- a/doc/examples/one-sample-t.sps +++ /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 index 97b24b5c53..0000000000 --- a/doc/examples/reliability.sps +++ /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 index 65807cdc06..0000000000 --- a/doc/examples/split.sps +++ /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 index 3fc7fbc153..0000000000 --- a/doc/examples/tutorial1.sps +++ /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 index bdc23caf95..0000000000 --- a/doc/examples/tutorial2.sps +++ /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 index 7613f01bf2..0000000000 --- a/doc/examples/tutorial3.sps +++ /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 index 562da9a125..0000000000 --- a/doc/examples/tutorial4.sps +++ /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 index ced90da109..0000000000 --- a/doc/examples/tutorial5.sps +++ /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 index 889f77f28b..0000000000 --- a/doc/examples/tutorial6.sps +++ /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 index 07858d243d..0000000000 --- a/doc/examples/tutorial7.sps +++ /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 index 6fe576ef7f..0000000000 --- a/doc/examples/weight.sps +++ /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 index 0000000000..4c0b3f3d25 --- /dev/null +++ b/doc/pspp-figures/autorecode.sps @@ -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 index 0000000000..e8428f16b1 --- /dev/null +++ b/doc/pspp-figures/chisquare.sps @@ -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 index 0000000000..af4b50526c --- /dev/null +++ b/doc/pspp-figures/compute.sps @@ -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 index 0000000000..4897d7912c --- /dev/null +++ b/doc/pspp-figures/count.sps @@ -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 index 0000000000..6289763330 --- /dev/null +++ b/doc/pspp-figures/descriptives.sps @@ -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 index 0000000000..daac3e02f3 --- /dev/null +++ b/doc/pspp-figures/flip.sps @@ -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 index 0000000000..7c639e687e --- /dev/null +++ b/doc/pspp-figures/frequencies.sps @@ -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 index 0000000000..8fb93f7d76 --- /dev/null +++ b/doc/pspp-figures/independent-samples-t.sps @@ -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 index 0000000000..26f39ef95c --- /dev/null +++ b/doc/pspp-figures/means.sps @@ -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 index 0000000000..b3bc56f9a8 --- /dev/null +++ b/doc/pspp-figures/one-sample-t.sps @@ -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 index 0000000000..97b24b5c53 --- /dev/null +++ b/doc/pspp-figures/reliability.sps @@ -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 index 0000000000..65807cdc06 --- /dev/null +++ b/doc/pspp-figures/split.sps @@ -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 index 0000000000..3fc7fbc153 --- /dev/null +++ b/doc/pspp-figures/tutorial1.sps @@ -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 index 0000000000..bdc23caf95 --- /dev/null +++ b/doc/pspp-figures/tutorial2.sps @@ -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 index 0000000000..7613f01bf2 --- /dev/null +++ b/doc/pspp-figures/tutorial3.sps @@ -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 index 0000000000..562da9a125 --- /dev/null +++ b/doc/pspp-figures/tutorial4.sps @@ -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 index 0000000000..ced90da109 --- /dev/null +++ b/doc/pspp-figures/tutorial5.sps @@ -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 index 0000000000..889f77f28b --- /dev/null +++ b/doc/pspp-figures/tutorial6.sps @@ -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 index 0000000000..07858d243d --- /dev/null +++ b/doc/pspp-figures/tutorial7.sps @@ -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 index 0000000000..6fe576ef7f --- /dev/null +++ b/doc/pspp-figures/weight.sps @@ -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. diff --git a/doc/pspp.texi b/doc/pspp.texi index e96ca4c1ff..6914697691 100644 --- a/doc/pspp.texi +++ b/doc/pspp.texi @@ -25,7 +25,7 @@ graphic user interface @end html @cartouche @smallexample -@verbatiminclude \FILE\ +@verbatiminclude pspp-figures/\FILE\ @end smallexample @end cartouche @html