1 * Encoding: UTF-8. 2 * A simple example to introduce .sps files . 3 4 get file="../Data/Cars.sav". 5 * Can also be downloaded from http://www.ssc.wisc.edu/~hemken/SPSSworkshop s/Data . 28 Jun 16 6 GRAPH /SCATTERPLOT(BIVAR)=weight WITH mpg. 7 /home/h/hemken/PUBLIC_web/SPSSworkshops/Data/Cars.sav 8 descriptives variables=weight mpg. 9 /home/h/hemken/PUBLIC_web/SPSSworkshops/Data/Cars.sav Descriptive Statistics |_____________________|___|_______|_______|_______|______________| | |N |Minimum|Maximum|Mean |Std. Deviation| |_____________________|___|_______|_______|_______|______________| |Vehicle Weight (lbs.)|406|732 |5140 |2969.56|849.827 | |_____________________|___|_______|_______|_______|______________| |Miles per Gallon |398|9 |47 |23.51 |7.816 | |_____________________|___|_______|_______|_______|______________| |Valid N (listwise) |398| | | | | |_____________________|___|_______|_______|_______|______________| 10 CORRELATIONS 11 /VARIABLES=mpg weight. 12 /home/h/hemken/PUBLIC_web/SPSSworkshops/Data/Cars.sav Correlations |_______|___________________|________________|_____________________| | | |Miles per Gallon|Vehicle Weight (lbs.)| |_______|___________________|________________|_____________________| |Miles |Pearson Correlation|1 |-.807 | |per |___________________|________________|_____________________| |Gallon |Sig. (2-tailed) | |.000 | | |___________________|________________|_____________________| | |N |398 |398 | |_______|___________________|________________|_____________________| |Vehicle|Pearson Correlation|-.807 |1 | |Weight |___________________|________________|_____________________| |(lbs.) |Sig. (2-tailed) |.000 | | | |___________________|________________|_____________________| | |N |398 |406 | |_______|___________________|________________|_____________________| 13 show version. 14 /home/h/hemken/PUBLIC_web/SPSSworkshops/Data/Cars.sav Version |______________|________|___________| |Component |Version |Date | |______________|________|___________| |STATISTICSB |19.00.00|20-DEC-2010| |______________|________|___________| |libspsswctl.so|19.00.00|20-DEC-2010| |______________|________|___________| |libspsswlib.so|19.00.00|20-DEC-2010| |______________|________|___________| |libspsswpea.so|19.00.00|20-DEC-2010| |______________|________|___________| |libspsswcde.so|19.00.00|20-DEC-2010| |______________|________|___________| |libspsswgra.so|19.00.00|20-DEC-2010| |______________|________|___________| |libspsswfil.so|19.00.00|20-DEC-2010| |______________|________|___________| 15 14 command lines read. 0 errors detected. 0 warnings issued. 2 seconds CPU time. 3 seconds elapsed time. End of job.