Documente Academic
Documente Profesional
Documente Cultură
CHAPTER 4: SPSS
SPSS OVERVIEW The SPSS Environment
SPSS for Windows provides a powerful statistical analysis and data management system in a graphical environment, using descriptive menus and simple dialog boxes to do most of the work for you. Most tasks can be accomplished simply by pointing and clicking the mouse. Data Editor - a versatile spreadsheet-like system for defining, entering, editing, and displaying data. Data view. Displays the actual data values or defined value labels.
Variable view. Displays variable definition information, including defined variable and value labels, data type (for example, string, date, and numeric), measurement level (nominal, ordinal, or scale), and user-defined missing values.
80
81
Variable Names - the following rules apply to variable names: The name must begin with a letter. The remaining characters can be any letter, any digit, a period, or the symbols @, #, _, or $. Variable names cannot end with a period. Variable names that end with an underscore should be avoided (to avoid conflict with variables automatically created by some procedures). The length of the name cannot exceed 64 bytes. Sixty-four bytes typically means 64 characters in single-byte languages (for example, English, French, German, Spanish, Italian, Hebrew, Russian, Greek, Arabic, Thai) and 32 characters in doublebyte languages (for example, Japanese, Chinese, Korean). Blanks and special characters (for example, !, ?, ', and *) cannot be used. Each variable name must be unique; duplication is not allowed. Reserved keywords cannot be used as variable names. Reserved keywords are: ALL, AND, BY, EQ, GE, GT, LE, LT, NE, NOT, OR, TO, WITH. Variable names can be defined with any mixture of upper- and lowercase characters, and case is preserved for display purposes. When long variable names need to wrap onto multiple lines in output, SPSS attempts to break the lines at underscores, periods, and at changes from lower case to upper case. In addition to defining variable properties in the Variable view, there are two other methods for defining variable properties: The Copy Data Properties Wizard provides the ability to use an external SPSS data file as a template for defining file and variable properties in the working data file. You can also use variables in the working data file as templates for other variables in the working data file. Copy Data Properties is available on the Data menu in the Data Editor window. Define Variable Properties (also available on the Data menu in the Data Editor window) scans your data and lists all unique data values for any selected variables, identifies unlabeled values, and provides an auto-label feature. This is particularly useful for categorical variables that use numeric codes to represent categories--for example, 0 = Male, 1 = Female.
Split File
Split File splits the data file into separate groups for analysis based on the values of one or more grouping variables. If you select multiple grouping variables, cases are grouped by each variable within categories of the preceding variable on the Groups Based On list. For example, if you select gender as the first grouping variable and minority as the second grouping variable, cases will be grouped by minority classification within each gender category.
82
Data Transformations
The data you start with may not always be organized in the most useful manner for your analysis or reporting needs. For example, you may want to: Create a categorical variable from a scale variable. Combine several response categories into a single category. Create a new variable that is the computed difference between two existing variables. Calculate the length of time between two dates.
83
1. Type the name of a single target variable. It can be an existing variable or a new variable to be added to the working data file. 2. To build an expression, either paste components into the Expression field or type directly in the Expression field. 3. String constants must be enclosed in quotation marks or apostrophes. 4. If values contain decimals, a period (.) must be used as the decimal indicator. 5. For new string variables, you must also select Type & Label to specify the data type. Using Functions in Expressions You can also use predefined functions in expressions. More than 70 built-in functions are available, including: Arithmetic functions Statistical functions Distribution functions Logical functions Date and time aggregation and extraction functions Missing-value functions Cross-case functions String functions
Functions are organized into logically distinct groups, such as a group for arithmetic operations and another for computing statistical metrics. For convenience, a number of commonly used system variables, such as $TIME (current date and time), are also included in appropriate function groups. A brief description of the currently selected function (in this case, SUM) or system variable is displayed in a reserved area in the Compute Variable dialog box.
84
Recoding Variables
The recode dialog box allows you to reassign the values of existing variables or collapse ranges of existing values into new values. For example, you could collapse salaries into salary range categories. You can recode numeric and string variables. If you select multiple variables, they must all be the same type. You cannot recode numeric and string variables together.
85
For recoding into the same variable, select the variable to be recoded and move it into the variables box.
For recoding into a different variable, select the variable to be recoded and move it into the box, then enter the name and label of the modified variable. Click change. Click the old and new values command button.
86
The Viewer is divided into two panes: The left pane of the Viewer contains an outline view of the contents. The right pane contains statistical tables, charts, and text output.
You can use the scroll bars to browse the results, or you can click an item in the outline to go directly to the corresponding table or chart. You can click and drag the right border of the outline pane to change the width of the outline pane.
Charts. Charts (except "interactive" charts and maps). Chart objects are only included with XML and HTML destination formats. Logs. Log text objects. Log objects contain certain types of error and warning messages. Depending on your Options settings (Edit menu, Options, Viewer) log objects may also contain the command syntax executed during the session. Log objects are labeled Log in the outline pane of the Viewer.
87
Tables. Output objects that are pivot tables in the Viewer. This includes Notes tables. Tables are the only output objects that can be routed to SPSS data file (.sav) format. Text. Text objects that arent logs or headings. This includes objects labeled Text Output in the outline pane of the Viewer. Trees. Tree model diagrams produced by the Classification Tree option. Tree objects are only included with XML and HTML destination formats. Headings. Text objects labeled Title in the outline pane of the Viewer. For output XML format, heading text objects are not included. Warnings. Warning objects. Warnings objects contain certain types of error and warning messages.
88
89