MoinMoin Logo
  • Comments
  • Immutable Page
  • Menu
    • Navigation
    • RecentChanges
    • FindPage
    • Local Site Map
    • Help
    • HelpContents
    • HelpOnMoinWikiSyntax
    • Display
    • Attachments
    • Info
    • Raw Text
    • Print View
    • Edit
    • Load
    • Save
  • Login

Navigation

  • Start
  • Sitemap

Upload page content

You can upload content for the page named below. If you change the page name, you can also upload content for another page. If the page name is empty, we derive the page name from the file name.

File to load page content from
Page name
Comment

  • pspp

Contents

  1. pspp
    1. SlackBuild
    2. Test
    3. Other test
    4. Test
    5. Slackbuild - update version

pspp

GNU PSPP is a program for statistical analysis of sampled data. It is a Free replacement for the proprietary program SPSS, and appears very similar to it with a few exceptions.

http://www.gnu.org/software/pspp/faq.html

SlackBuild

Requires readline 6.2 and gtksourceview and spread-sheet-widget (exists in slackbuild.org).

Slackbuild: pspp.tar.gz

Package 32 bit: pspp-0.8.1-i486-1_SBo.tgz

Test

Save the following data in a file named myfile.sps:

DATA LIST LIST /name (a25) quantity (f8).
BEGIN DATA.
widgets 10345
oojars 2345
dubreys 98
thingumies 518
END DATA.
 
LIST.
 
DESCRIPTIVES /quantity
 /statistics ALL.

Run psppire:

  • File
  • Open myfile.sps
  • Menu Run, all

The data view and variable view will appear filled. An output window will appear with all the data.

Other test

PSPP> get file='PARAM_exercicio2.sav'.
PSPP> list Tv_hours.
PSPP> compute TvHoursHigherEqual=Tv_hours>=2.
PSPP> list Tv_hours TvHoursHigherEqual.
PSPP> filter by TvHoursHigherEqual.
PSPP> mean age.
PSPP> filter off.

Test

nano data.txt
Ahmed          188.00 
Bertram        167.00 
Catherine      134.23 
David          109.10

mkdir -p /root/.local/state/pspp/ 

pspp
PSPP is free software and you are welcome to distribute copies of it
under certain conditions; type "show copying." to see the conditions.
There is ABSOLUTELY NO WARRANTY for PSPP; type "show warranty." for details.
GNU pspp 2.1.1
PSPP> data list file='data.txt' list /forename(A12) height. 
Reading free-form data from `data.txt'.
+--------+------+
|Variable|Format|
+--------+------+
|forename|A12   |
|height  |F8.0  |
+--------+------+
PSPP> list /format=numbered.

2: warning: Missing value(s) for all variables from forename onward.  These will be filled with the system-
missing value or blanks, as appropriate.

           Data List
+-----------+---------+------+
|Case Number| forename|height|
+-----------+---------+------+
|1          |Ahmed    |188.00|
|2          |Bertram  |167.00|
|3          |Catherine|134.23|
|4          |David    |109.10|
|5          |         |     .|
+-----------+---------+------+
PSPP> save outfile='out.sav'.
PSPP> exit.

Slackbuild - update version

   1 # docker hub  https://hub.docker.com/u/vbodocker
   2 docker pull vbodocker/build-pspp-slackware64-15
   3 docker run -it  vbodocker/build-pspp-slackware64-15 bash
   4 
   5 cat /etc/os-release 
   6 #NAME=Slackware
   7 #VERSION="15.0"
   8 
   9 cd ~
  10 sh build-spread-sheet-widget.sh # build widget
  11 
  12 sh build-pspp.sh # version 2.0.1 
  13 nano build-pspp.sh 
  14 cd ~ 
  15 wget https://slackbuilds.org/slackbuilds/15.0/academic/pspp.tar.gz 
  16 tar xvzf pspp.tar.gz 
  17 cd pspp 
  18 wget http://mirrors.nav.ro/gnu/pspp/pspp-2.1.1.tar.gz 
  19 GTK3_LIBS="-L/usr/lib64 -lspread-sheet-widget -lgtk-3 -lgdk-3 -lz -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0" ./pspp.SlackBuild
  20 installpkg /tmp/pspp-2.1.1-x86_64-1_SBo.tgz 
  21 
  22 sh build-pspp.sh # version 2.1.1 
  23 psppire --version
  24 # psppire (GNU PSPP) 2.1.1
  25 pspp --version
  26 # pspp (GNU PSPP) 2.1.1
  27 
  28 nano data.txt
  29 cat data.txt 
  30 #Ahmed          188.00 
  31 #Bertram        167.00 
  32 #Catherine      134.23 
  33 #David          109.10
  34 
  35 mkdir -p /root/.local/state/pspp/ 
  36 pspp 
  37 data list file='data.txt' list /forename(A12) height.
  38 list /format=numbered.
  39 save outfile='out.sav'.
  40 exit.
  41 
  42 rm pspp-2.1.1.tar.gz
  43 
  44 cd ~ 
  45 wget https://slackbuilds.org/slackbuilds/15.0/academic/pspp.tar.gz 
  46 tar xvzf pspp.tar.gz 
  47 cd pspp 
  48 
  49 wget http://mirrors.nav.ro/gnu/pspp/pspp-2.1.2.tar.gz 
  50 md5sum pspp-2.1.2.tar.gz 
  51 # 4492ad86014754a38331249fec84b63d  pspp-2.1.2.tar.gz
  52 # build package 
  53 
  54 GTK3_LIBS="-L/usr/lib64 -lspread-sheet-widget -lgtk-3 -lgdk-3 -lz -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0" ./pspp.SlackBuild 
  55 # Slackware package /tmp/pspp-2.1.2-x86_64-1_SBo.tgz created.
  56 installpkg /tmp/pspp-2.1.2-x86_64-1_SBo.tgz 
  57 # Package pspp-2.1.2-x86_64-1_SBo.tgz installed.
  58 
  59 pspp --version
  60 # pspp (GNU PSPP) 2.1.2
  61 psppire --version
  62 # psppire (GNU PSPP) 2.1.2
  63 
  64 # in debian 
  65 cd ~/Documents/pspp
  66 docker cp elastic_rubin:/root/pspp/pspp.SlackBuild .  
  67 docker cp elastic_rubin:/root/pspp/pspp.info . 
  68 cd ~/Documents 
  69 # build slackbuild package
  70 tar cvzf pspp.tar.gz pspp/pspp.info pspp/doinst.sh pspp/slack-desc  pspp/README  pspp/pspp.SlackBuild
  71 docker cp pspp.tar.gz elastic_rubin:/tmp/
  72 
  73 # in docker image 
  74 cd /tmp/
  75 tar xvzf pspp.tar.gz 
  76 cd pspp
  77 wget $(cat pspp.info | grep DOWNLOAD= | sed 's/\=/ /g' | sed 's/\"//g' | awk '//{print $2}')
  78 md5sum pspp*tar.gz
  79 GTK3_LIBS="-L/usr/lib64 -lspread-sheet-widget -lgtk-3 -lgdk-3 -lz -lpangocairo-1.0 -lpango-1.0 -lharfbuzz -latk-1.0 -lcairo-gobject -lcairo -lgdk_pixbuf-2.0 -lgio-2.0 -lgobject-2.0 -lglib-2.0" ./pspp.SlackBuild
  80 installpkg /tmp/pspp-2.1.2-x86_64-1_SBo.tgz 
  81 
  82 # https://slackbuilds.org/submit/
  83 # email: <email>
  84 # category: academic 
  85 # file to upload: pspp.tar.gz 
  86 # submit 
  87 # check https://slackbuilds.org/pending/
  88 
  • MoinMoin Powered
  • Python Powered
  • GPL licensed
  • Valid HTML 4.01