Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
23 views

SPSS Commands

SPSS can be used to read in different data file formats, sort cases, organize output by variables, exclude cases, calculate frequencies and descriptive statistics, and perform correlation, regression, and other statistical analyses. Variables names must be unique and follow certain naming conventions. Cases can be split or filtered to select subsets for analysis using commands like SPLIT FILE and FILTER.

Uploaded by

Tanvir Arefin
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
23 views

SPSS Commands

SPSS can be used to read in different data file formats, sort cases, organize output by variables, exclude cases, calculate frequencies and descriptive statistics, and perform correlation, regression, and other statistical analyses. Variables names must be unique and follow certain naming conventions. Cases can be split or filtered to select subsets for analysis using commands like SPLIT FILE and FILTER.

Uploaded by

Tanvir Arefin
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Used to read in data that are in an SPSS data file, i.e.

,
.sav formatted data file.
Used to read in data in different formats, such as comma
separated value (.csv) and excel (.xlsx or .xls) format.
Used to read in data that are in fixed (.fix) or list format.
Lists the data in the output window.
Sort cases in the data file.
Organizes output by a categorical variable.
Excludes certain cases from the analysis.
Uses all cases in the data set.
Displays requested file information.
Saves the current data file with a new name.
Calculates frequencies and also used to draw bar
diagram, pie chart and histogram.
Calculates descriptive statistics.
Procedures for obtaining descriptive statistics.
Procedures for obtaining table of descriptive statistics.
Procedures for obtaining bar diagram, pie chart,
histogram, scatter plot and scatter plot matrix.
Procedures for obtaining descriptive statistics with stem &
leaf plot and box & whisker plot.
Calculates correlation coefficients between variables.
Adds a document to the data set.
Keeps selected cases in the data in the current data file.
Displays the file information.
Renames the variables.
Recodes the values of labels to the variables.
Add labels to the datasets.
Add labels to the variables.
Add labels to the values of a variable.
Creates new numeric variable.
Create new numeric variables with aggregated data (such
as, mean of a variable for each level of other variable).
Creates a numeric version of a string variable.
Appends (stacks) data files (add cases).
Merges data files (add cases).
Performs cross-tabulation, i.e., testing independence.
Performs t-test for testing means.
Performs one-way analysis of variance.
Performs general linear regression.
Draws normal probability plot and Q-Q plot.
Performs logistic regression.
Performs non-parametric tests.

1. Each variable name must be unique; duplication is not allowed.


2. Variable names can be up to 64 bytes long, and the first character must be
a letter or one of the characters @, #, or $.
3. Variable names cannot contain spaces.
4. The period, the underscore, and the characters $, #, and @ can be used
within variable names.
5. Variable names ending with a period should be avoided, since the period
may be interpreted as a command terminator.
6. Variable names ending in underscores should be avoided
7. Reserved keywords cannot be used as variable names.
8. Variable names can be defined with any mixture of uppercase and
lowercase characters, and case is preserved for display purposes.

We can choose one of two ways to split the data:

1. Compare groups: Here all of the results will be shown in a single


table. The table will have sections showing the results for each group.

The SPSS command is:


[sort cases by ses.
split file layered by ses.

descriptives variables = gender read write math science.]

2. Organize output by groups: Here each groups' results will be put into
a separate table.

The SPSS command is:


[sort cases by ses.
split file separate by ses.

descriptives variables = gender read write math science.]


There are two main basic commands for selecting subset of cases for the analysis
in SPSS. They are [filter], [use # thru #].
Thus these commands are given below with examples:
1. For [filter] command:
[compute f_acad=(prgtype="academic").
filter by f_acad.
execute.
descriptives
variables=gender read write math science. ]

2. For [use # thru #] command:


[use 1 thru 40.
execute.
descriptives
variables=gender read write math science.]

You might also like