Discussion:
PSPP output
Andrea Occhi
2017-07-10 14:09:14 UTC
Permalink
Hi.

There is any other way to export a frequency or a crosstab other than
writing this down into a syntax file (called syntax.sps) a thing like
this

get file dati.sav

SORT CASES BY q0001.
SPLIT FILE LAYERED BY q0001.

FREQUENCIES VARIABLES=q0002
/MISSING=EXCLUDE
/STATISTICS=NONE
/FORMAT=TABLE


and then call pspp in this way:

pspp -o saveEa.csv sintassiEa.sps


I have 30 frequency and crosstab to read, and I would like to read in
a single command producing one file per frequency or crosstab.
Or, best of it, put all data in a sqlite db or something else.

I am new of pspp, a friend of mine is writing the syntax, but she come
from spss and use graphic stuff, that I would like to eliminate.


Thanks a lot

Andrea
Ben Pfaff
2017-07-10 17:32:08 UTC
Permalink
Post by Andrea Occhi
There is any other way to export a frequency or a crosstab other than
writing this down into a syntax file (called syntax.sps) a thing like
this
get file dati.sav
SORT CASES BY q0001.
SPLIT FILE LAYERED BY q0001.
FREQUENCIES VARIABLES=q0002
/MISSING=EXCLUDE
/STATISTICS=NONE
/FORMAT=TABLE
pspp -o saveEa.csv sintassiEa.sps
You could write a shell script with a "for" loop that generates and runs
the .sps command files.

Loading...