115
1 Office Management Tools By: Saima Gul

1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

Embed Size (px)

Citation preview

Page 1: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

1

Office Management ToolsBy:

Saima Gul

Page 2: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

2

Introduction

SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical analysis.

In 2009, it has been re-branded as PASW (Predictive Analytics SoftWare).

SPSS is among the most widely used programs for statistical analysis in social science. It is used by market researchers, health researchers, survey companies, government, education researchers, marketing organizations and others.

Page 3: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

3

Data EditorThe Data Editor displays the contents of the

active data file. The information in the Data Editor consists of variables and cases.

In Data View, columns represent variables, and rows represent cases (observations).

In Variable View, each row is a variable, and each column is an attribute that is associated with that variable.

Variables are used to represent the different types of data that you have compiled. Variables come in many different types, including numbers, strings, currency, and dates.

Page 4: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

4

On start up, click “Type in data”, then click “OK”.

Page 5: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

5

Data Editor

Page 6: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

6

Entering DataClick the Variable View tab at the bottom of the Data Editor

window.You need to define the variables that will be used. In this

case, the needed variables are: staffNo, Fname, LName, Position, Gender, DoB, Salary and BranchNo.

In the first row of the first column, type staffNo, in the second row, type FName, in the third row, type LName and so on.

New variables are automatically given a Numeric data type. For string data type, click the button on the right side of the

Type cell to open the Variable Type dialog box. Select String to specify the variable type. Click OK to save your selection and return to the Data Editor.

If you don't enter variable names, unique names are automatically created. However, these names are not descriptive and are not recommended for large data files.

Click the Data View tab to continue entering the data.

Page 7: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

7

Entering Data (Contd.)

Page 8: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

8

Entering Data

Page 9: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

9

Entering Data (Contd.)Click the Data View tab to continue entering the data.The names that you entered in Variable View are now the

headings for the first three columns in Data View.Begin entering data in the first row, starting at the first

column.In the StaffNo column, type s21. In the Fname column,

type John. In the LName column, type White and so on.Move the cursor to the second row of the first column to

add the next subject's data, and repeat the above steps.Currently, the salary column displays decimal points,

even though its value is intended to be integer. To hide the decimal points in variables:

Click the Variable View tab at the bottom of the Data Editor window.

In the Decimals column of the Salary row, type 0 to hide the decimal.

Page 10: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

10

Entering Data (Contd.)

Page 11: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

11

Defining DataIn addition to defining data types, you can also

define descriptive variable labels and value labels for variable names and data values. These descriptive labels are used in statistical reports and charts.

Labels are meant to provide descriptions of variables. These descriptions are often longer versions of variable names.

Labels can be up to 255 bytes. These labels are used in your output to identify the different variables.

Click the Variable View tab at the bottom of the Data Editor window.

In the Label column of the FName row, type First Name. In the Label column of the LName row, type Last Name. In the Label column of the DoB row, type Date of Birth.

Page 12: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

12

Defining Data (Contd.)

Page 13: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

13

Defining Data (Contd.)

Page 14: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

14

Adding Value Labels for VariablesValue labels provide a method for mapping your

variable values to a string label. In this example, there are two acceptable values for the Gender variable.

A value of F means that the subject is female, and a value of M means that the subject is male.

Click the Values cell for the Gender row, and then click the button on the right side of the cell to open the Value Labels dialog box.

The value is the actual numeric/string value.The value label is the string label that is applied

to the specified numeric (or string) value.Type M in the Value field. Type Male in the Label

field. Click Add to add this label to the list.

Page 15: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

15

Adding Value Labels for Variables

Page 16: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

16

Adding Value Labels for Variables

Now repeat the same for F. Then click ok.Because string values are case sensitive, you

should be consistent. A lowercase m is not the same as an uppercase M.

Page 17: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

17

Page 18: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

18

Adding Value Labels for VariablesThese labels can also be displayed in Data View,

which can make your data more readable.Click the Data View tab at the bottom of the

Data Editor window.From the menus choose: View -> Value LabelsThe labels are now displayed in a list when you

enter values in the Data Editor. This setup has the benefit of suggesting a valid response and providing a more descriptive answer.

If the Value Labels menu item is already active (with a check mark next to it), choosing Value Labels again will turn off the display of value labels.

Page 19: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

19

When Value Label is Active

Page 20: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

20

Using Value Labels for Data EntryYou can use value labels for data entry.Click the Data View tab at the bottom of the

Data Editor window.In the first row, select the cell for gender.

Click the button on the right side of the cell, and then choose Male from the drop-down list. In the second row, select the cell for gender. Click the button on the right side of the cell, and then choose Female from the drop-down list.

Only defined values are listed, which ensures that the entered data are in a format that you expect.

Page 21: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

21

Using Value Labels for Data Entry

Page 22: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

22

Handling Missing DataMissing or invalid data are generally too common to

ignore. Survey respondents may refuse to answer certain questions, may not know the answer, or may answer in an unexpected format.

If you don't filter or identify these data, your analysis may not provide accurate results.

For numeric data, empty data fields or fields containing invalid entries are converted to system-missing, which is identifiable by a single period.

The reason a value is missing may be important to your analysis.

For example, you may find it useful to distinguish between those respondents who refused to answer a question and those respondents who didn't answer a question because it was not applicable.

Page 23: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

23

Handling Missing DataClick the Variable View tab at the bottom of the

Data Editor window.Click the Missing cell in the salary row, and then

click the button on the right side of the cell to open the Missing Values dialog box.

In this dialog box, you can specify up to three distinct missing values, or you can specify a range of values plus one additional discrete value.

Select Discrete missing values. Type 000 in the first text box and leave the other two text boxes empty.

Click OK to save your changes and return to the Data Editor.

Page 24: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

24

Handling missing data

Page 25: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

25

Missing Values for a Numeric VariableNow that the missing data value has been

added, a label can be applied to that value.Click the Values cell in the Salary row, and

then click the button on the right side of the cell to open the Value Labels dialog box.

Type 000 in the Value field. Type No Response in the Label field.

Click Add to add this label to your data file. Click OK to save your changes and return to the Data Editor.

Page 26: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

26

Missing Values for a Numeric Variable

Page 27: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

27

Missing Values for a String VariableMissing values for string variables are

handled similarly as the missing values for numeric variables.

However, unlike numeric variables, empty fields in string variables are not designated as system-missing. Rather, they are interpreted as an empty string.

Missing values for string variables are case sensitive.

Page 28: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

File -> Display Data File InfoThis option provides useful information regarding a data

file, the variables it contains, their labels and their format.

28

Page 29: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

Edit -> Insert VariableIf you want to insert a new variable (column) between

two variables, click once on the label of one of the two columns in order to highlight it, and then choose the Insert Variable option. A new column will appear in the data file.

29

Edit -> Insert CasesIf you want to insert a new row (e.g., one

questionnaire you forgot to enter) between two rows, highlight one of the two rows by clicking once on its number, and then choose the Insert Case option.

Page 30: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

Edit -> Go to Case/VariableThis option is useful if you have a large data file and

you want to go directly to a particular case (participant). Type the case number and click OK.

30

Page 31: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

Data -> TransposeWith this option you can create a new data file in

which the rows and the columns of the old file are transposed in the new file, so that the rows become columns and vice versa.

Move all the variables of the old file into the Variable(s) box; otherwise they will not appear in the new data file.

If the old file contains a variable whose values could be used as variable names in the new data file, move this variable into the Name Variable box.

31

Page 32: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

Data Before Applying Transpose

32

Page 33: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

Data -> Transpose

33

Page 34: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

Data After Applying Transpose

34

Page 35: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

Data -> Merge File (Add Cases)This option is useful when you want to combine two

different data files.

35

Page 36: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

Data -> Merge File (Add Cases) (Contd.)

36

Page 37: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

Result of Merge Cases

37

Page 38: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

Data -> Merge File (Add Variables)

38

Page 39: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

Result of Merge Variables

39

Page 40: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

Data -> Select CasesYou use this option to separate some cases from the rest of

the sample, e.g. separating cases where BranchNo is B003.

40

Page 41: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

Data -> Select Cases (Contd.)

41

Page 42: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

Data -> Select Cases (Contd.)

42

Page 43: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

Data -> Split FileWith this option, the results of any analysis will be

presented separately for the number of groups selected.

If you change your mind and you do not want to compare groups, select the Analyze all cases, do not create groups option.

43

Page 44: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

Descriptives before splitting fileGo to ANALYZE/STATISTICS/DESCRIPTIVES

44

Page 45: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

Now apply Data -> Split File

45

Page 46: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

Again Analyze/Statistics/Descriptives

46

The statistics are shown separately for males and females. From this table you can compare males and females easily.

Page 47: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

Transform -> Count values within casesWith this option you can count the number of occurrences of

a particular value across the different variables of the same case(individual).

Let's assume a wholesaler has conducted a simple survey to determine the ratings given by five retailers (“firm 1,” “firm 2,” … , “firm 5”) to product quality on products supplied by this wholesaler to these retailers.

The retailers were asked to rate the products on a scale from 1-10, with a higher rating implying a higher quality rating. The data was entered by product, with one variable for each retailer.

The wholesaler wants to determine the distribution of products that got an “Excellent” rating, defined by the wholesaler to be ratings in the range 7-10.

To do this, a new variable must be created. This variable should “count” the number of firms that gave a “positive” rating (that is, a rating in the range 7-10) for a product.

47

Page 48: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

Data before Counting applied

48

Page 49: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

Transform -> Count values within cases

49

Click “Define Values…”

Page 50: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

Transform -> Count values within cases

50

Page 51: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

Data after Transform -> Counting applied

51

Page 52: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

Transform -> Recode into same variableYou can recode the values of a variable and still retain

this variable in a data file.Talking about the Firm example, there range 1-3 was

for “Poor”, 4-6 for “Good”, and 7-10 for “Excellent”. We can also recode it as 1 for Poor, 2 for Good and 3 for Excellent.

52

Page 53: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

Data before applying recode

53

Page 54: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

Transform -> Recode into same variable

54

Page 55: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

Transform -> Recode into same variable

55

Page 56: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

Data after applying Recode

56

Page 57: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

Transform -> Recode into different variableIn some cases you may want to recode the values of a

variable but retain its original values. To achieve this, you need to recode the original variable into a different variable.

57

Page 58: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

Transform -> Recode into different variable

58

Define name and label of new variable, then click on “old and new values…”

Page 59: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

Transform -> Recode into different variable

59

Page 60: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

Data after applying recode into different variable

60

Page 61: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

61

Running an Analysis The Analyze menu contains a list of general reporting and

statistical analysis categories. We will start by creating a simple frequency table (table of

counts). From the menus choose: Analyze ->  Descriptive Statistics-

> FrequenciesThe Frequencies dialog box is displayed. An icon next to each variable provides information about

data type and level of measurement. In the dialog box, you choose the variables that you want to

analyze from the source list on the left and drag and drop them into the Variable(s) list on the right.

Click the variable Salary.You can obtain additional information by right-clicking any

variable name in the list. For example, you could click Salary and choose Variable Information.

Click OK to run the procedure.

Page 62: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

62

Running an Analysis

Page 63: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

63

Running an Analysis

Page 64: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

64

Running an Analysis

Page 65: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

65

Running an Analysis

Page 66: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

66

Running an Analysis

Page 67: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

67

Examining Summary Statistics for Individual Variables

We will now discuss simple summary measures and how the level of measurement of a variable influences the types of statistics that should be used.

Page 68: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

68

Level of MeasurementDifferent summary measures are appropriate for different

types of data, depending on the level of measurement: Categorical. Data with a limited number of distinct values

or categories (for example, gender or marital status). Also referred to as qualitative data. Categorical variables can be string (alphanumeric) data or numeric variables that use numeric codes to represent categories (for example, 0 = Fail and 1 = Pass). There are two basic types of categorical data:

o Nominal. Categorical data where there is no inherent order to the categories. For example, a job category of sales is not higher or lower than a job category of marketing or research.

o Ordinal. Categorical data where there is a meaningful order of categories, but there is not a measurable distance between categories. For example, there is an order to the values high, medium, and low, but the "distance" between the values cannot be calculated.

Page 69: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

69

Level of Measurement (Contd.) Scale. Data measured on an interval or ratio scale,

where the data values indicate both the order of values and the distance between values. For example, a salary of $72,195 is higher than a salary of $52,398, and the distance between the two values is $19,797. Also referred to as quantitative or continuous data.

Page 70: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

70

Summary Measures for Categorical DataFor categorical data, the most typical summary

measure is the number or percentage of cases in each category. The mode is the category with the greatest number of cases. For ordinal data, the median (the value at which half of the cases fall above and below) may also be a useful summary measure if there is a large number of categories.

The Frequencies procedure produces frequency tables that display both the number and percentage of cases for each observed value of a variable.

Example slide 33.

Page 71: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

71

Charts for Categorical Data

You can graphically display the information in a frequency table with a bar chart or pie chart.

Open the Frequencies dialog box again.Click Charts. Select Bar charts and then click Continue.Click OK in the main dialog box to run the

procedure .In addition to the frequency tables, the same

information is now displayed in the form of bar charts, making it easy to see the data.

Page 72: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

72

Charts for Categorical Data (Contd.)

Page 73: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

73

Charts for Categorical Data (Contd.)

Page 74: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

74

Charts for Categorical Data (Contd.)

Page 75: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

75

Summary Measures for Scale Variables There are many summary measures available for

scale variables, including:Measures of central tendency. The most

common measures of central tendency are the mean (arithmetic average) and median (value at which half the cases fall above and below).

Measures of dispersion. Statistics that measure the amount of variation or spread in the data include the standard deviation, minimum, and maximum.

Open the Frequencies dialog box again.Click Reset to clear any previous settings.Select Salary and move it into the Variable(s)

list.

Page 76: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

76

Summary Measures for Scale Variables (Contd.)

Click statistics.Select Mean, Median, Std. deviation,

Minimum, and Maximum. Click Continue.Deselect Display frequency tables in the main

dialog box. (Frequency tables are usually not useful for scale variables since there may be almost as many distinct values as there are cases in the data file.)

Click OK to run the procedure.The Frequencies Statistics table is displayed

in the Viewer window.

Page 77: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

77

Summary Measures for Scale Variables (Contd.)

Page 78: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

78

Summary Measures for Scale Variables (Contd.)

Page 79: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

79

Histograms for Scale Variables

Open the Frequencies dialog box again.

Click Charts. Select Histograms and

With normal curve. Click Continue, and

then click OK in the main dialog box to run the procedure.

Page 80: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

80

Crosstabulation TablesCrosstabulation tables (contingency tables) display the

relationship between two or more categorical (nominal or ordinal) variables. The size of the table is determined by the number of distinct values for each variable, with each cell in the table representing a unique combination of values. Numerous statistical tests are available to determine whether there is a relationship between the variables in a table.

From the menus choose:  Analyze -> Descriptive Statistics -> Crosstabs

Select Salary as the row variable.Select OwnsPDA as the column variable.Click OK to run the procedure.The cells of the table show the count or number of

cases for each joint combination of values.

Page 81: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

81

A Simple Crosstabulation

Page 82: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

82

A Simple Crosstabulation

Page 83: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

83

Counts vs. Percentages

It is often difficult to analyze a crosstabulation simply by looking at the simple counts in each cell.

Open the Crosstabs dialog box again. (The two variables should still be selected.)

Click cells.Click (check) Row in the Percentages group.Click Continue and then click OK in the main

dialog box to run the procedure.A clearer picture now starts to emerge. The

percentage of people who own PDAs rises as the income category rises.

Page 84: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

84

Counts vs. Percentages

Page 85: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

85

Counts vs. Percentages

Page 86: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

86

Significance Testing for CrosstabulationsThe purpose of a crosstabulation is to show the relationship

(or lack thereof) between two variables. A number of tests are available to determine if the

relationship between two crosstabulated variables is significant. One of the more common tests is chi-square. One of the advantages of chi-square is that it is appropriate for almost any kind of data.

Open the Crosstabs dialog box again, Click Statistics.Click (check) Chi-square.Click Continue and then click OK in the main dialog box to

run the procedure.Pearson chi-square tests the hypothesis that the row and

column variables are independent. The actual value of the statistic isn't very informative.

The significance value (Asymp. Sig.) has the information we're looking for. The lower the significance value, the less likely it is that the two variables are independent (unrelated).

Page 87: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

87

Significance Testing for Crosstabulations

Page 88: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

88

Significance Testing for Crosstabulations

Page 89: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

89

Data can be entered directly, or it can be imported from a number of different sources such as SPSS-format data files; spreadsheet applications, such as Microsoft Excel; database applications, such as Microsoft Access; and text files.

Reading Data

Page 90: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

90

Reading Data from Spreadsheets Rather than typing all of your data directly into the

Data Editor, you can read data from applications such as Microsoft Excel.

You can also read column headings as variable names. From the menus choose: File -> Open -> DataSelect Excel (*.xls) as the file type you want to view.The Opening Excel Data Source dialog box is

displayed, allowing you to specify whether variable names are to be included in the spreadsheet, as well as the cells that you want to import.

Make sure that Read variable names from the first row of data is selected. This option reads column headings as variable names.

If the column headings do not conform to the SPSS variable-naming rules, they are converted into valid variable names and the original column headings are saved as variable labels.

Page 91: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

91

Reading Data from Spreadsheets (Contd.)

If you want to import only a portion of the spreadsheet, specify the range of cells to be imported in the Range text box.

Click OK to read the Excel file.The data now appear in the Data Editor, with the

column headings used as variable names. Since variable names can't contain spaces, the spaces

from the original column headings have been removed. For example, Marital status in the Excel file becomes the variable Maritalstatus. The original column heading is retained as a variable label.

Page 92: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

92

Reading Data from Spreadsheets (Contd.)

Page 93: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

93

Reading Data from Spreadsheets (Contd.)

Page 94: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

94

Reading Data from

Spread sheets

(Contd.)

Page 95: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

95

Computing New VariablesUsing a wide variety of mathematical functions,

you can compute new variables based on highly complex equations. In this example, however, we will simply compute a new variable that is the difference between the values of two existing variables.

Add two new variables to your data file, namely “Current Age” and “Number of years worked”. We will create a variable for the employee’s age at the time he or she started that job. It is going to be the computed difference between current age and number of years at current job, which should be the approximate age at which the employee started that job.

Page 96: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

96

Computing New Variables (Contd.)From the menus in the Data Editor window choose:

Transform -> Compute Variable.For Target Variable, enter jobstart.Select Current Age in the source variable list and click

the arrow button to copy it to the Numeric Expression text box.

Click the minus (–) button on the calculator pad in the dialog box (or press the minus key on the keyboard).

Select Number of Years worked and click the arrow button to copy it to the expression.

Click OK to compute the new variable.The new variable is displayed in the Data Editor.

Since the variable is added to the end of the file, it is displayed in the far right column in Data View and in the last row in Variable View.

Page 97: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

97

Computing New Variables (Contd.)

Page 98: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

98

Computing New Variables (Contd.)

Page 99: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

99

Using Functions in ExpressionsYou 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�• Functions are organized into logically distinct groups,

such as a group for arithmetic operations and another for computing statistical metrics.

• 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.

Page 100: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

100

Using Functions in Expressions (Contd.)

Page 101: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

101

Using Functions in Expressions (Contd.) To paste a function into an expression: Position the cursor in the

expression at the point where you want the function to appear. Select the appropriate group from the Function group list. The group

labeled All provides a listing of all available functions and system variables.

Double-click the function in the Functions and Special Variables list (or select the function and click the arrow adjacent to the Function group list).

The function is inserted into the expression. If you highlight part of the expression and then insert the function, the highlighted portion of the expression is used as the first argument in the function.

The function is not complete until you enter the arguments, represented by question marks in the pasted function. The number of question marks indicates the minimum number of arguments required to complete the function.

Highlight the question mark(s) in the pasted function. Enter the arguments. If the arguments are variable names, you can

paste them from the variable list.

Page 102: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

102

Using Functions in Expressions (Contd.)Remove variable “Current age” and calculate it from variables “jobStart” and “Number

of years worked”

Page 103: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

103

Using Functions in Expressions (Contd.)

Page 104: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

104

Calculating the Length of Time between Two DatesA number of tasks commonly performed with dates and

times can be easily accomplished using the Date and Time Wizard. Using this wizard, you can:

Create a date/time variable from a string variable containing a date or time.

Construct a date/time variable by merging variables containing different parts of the date or time.

Add or subtract values from date/time variables, including adding or subtracting two date/time variables.

Extract a part of a date or time variable; for example, the day of month from a date/time variable which has the form mm/dd/yyyy.

One of the most common tasks involving dates is calculating the length of time between two dates. As an example, to calculate an employee’s current age from its date of birth.

Page 105: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

105

Calculating the Length of Time between Two Dates (Contd.)

To calculate the length of time between two dates:From the menus choose: Transform ->Date and

Time WizardSelect Calculate with dates and times in Time

Wizard and click Next.Select Calculate the number of time units between

two dates and click Next.Select Current Date and Time for Date1.Select DoB for Date2.Select Years for the Unit and Truncate to Integer

for the Result Treatment. (These are the default selections.)

Click Next.

Page 106: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

106

Calculating the Length of Time between Two Dates (Contd.)

Enter CAge for the name of the result variable. Result variables cannot have the same name as an existing variable.

Enter Current age as the label for the result variable. Variable labels for result variables are optional.

Leave the default selection of Create the variable now, and click Finish to create the new variable.

The new variable, CAge, displayed in the Data Editor is the integer number of years between the two dates. Fractional parts of a year have been truncated.

Page 107: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

107

Calculating the Length of Time between Two Dates (Contd.)

Page 108: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

108

Calculating the Length of Time between Two Dates (Contd.)

Page 109: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

109

Calculating the Length of Time between Two Dates (Contd.)

Page 110: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

110

Calculating the Length of Time between Two Dates (Contd.)

Page 111: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

111

Calculating the Length of Time between Two Dates (Contd.)

Page 112: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

112

Sorting DataSorting cases (sorting rows of the data file) is

often useful and sometimes necessary for certain types of analysis.

To reorder the sequence of cases in the data file based on the value of one or more sorting variables:

From the menus choose: Data -> Sort CasesThe Sort Cases dialog box is displayed.Add the CAge variable to the Sort by list.If you select multiple sort variables, the order in

which they appear on the Sort by list determines the order in which cases are sorted. For string variables, uppercase letters precede their lowercase counterparts in sort order .

Page 113: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

113

Sorting Data (Contd.)

Page 114: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

114

Sorting Data (Contd.)

Page 115: 1 Office Management Tools By: Saima Gul. 2 Introduction SPSS (Statistical Package for the Social Sciences) is a computer program used for statistical

115

The End