# EXAMPLE FORMATTING A HISTOGRAM by rpv32164

VIEWS: 11 PAGES: 7

• pg 1
```									             DESCRIPTIVE STATISTICS: GRAPHS FOR GROUPS
Suppose this set of data is entered in SPSS

GROUP                SCORE            f
Group A                1             1
Group A                2             2
Group A                3             5
Group A                4             6
Group A                5             5
Group A                6             2
Group A                7             1
Group B                4             2
Group B                5             3
Group B                6             7
Group B                7             11
Group B                8             14
Group B                9             5

This table really contains two frequency distributions—one for Group A and one for Group B.
Choose Data…Weight Cases.. and weight the cases by f, the frequency.

NOTE: This example will use bar graphs. To make them come out well, you need to use
zero decimal places on the variable.
GRAPHING BOTH GROUPS COMBINED: Bar Graphs

1) Here’s a bar graph for both groups combined.

16

14

12

10

8

6

4

2
Count

0
1       2       3       4       5       6       7       8       9

X

Cas es weight ed by F

We see, for example, that the score 8, which occurred 14 times, is the mode.

2) Below is the same graph, except “% of cases” has been chosen for the vertical axis.

30

20

10
Percent

0
1       2       3       4       5       6       7       8       9

X

Cas es weight ed by F
GRAPHING BOTH GROUPS COMBINED: Line Graphs

3) Here’s a bar graph for both groups combined.

16

14

12

10

8

6

4

2
Count

0
1            2         3            4       5       6       7       8       9

X

Cas es weighted by F

We see, for example, that the score 8, which occurred 14 times, is the mode.

4) Below is the same graph, except “% of cases” has been chosen for the vertical axis.

30
30

20 20

10 10
Percent
Percent

0
0
1       2         3       4       5       6   7   8       9
1            2         3            4       5       6       7       8       9
X
X
Cas es weight ed by F
Cas es weighted by F
GRAPHING GROUPS SEPARATELY: Bar Graphs

5) Here’s a bar graph showing the groups separately. This is called a clustered bar graph,
with clusters defined by group. We see that the scores are higher for Group B, the
frequencies are higher, and the shape is different.

16

14

12

10

8

6

4                                                                        GROUP

2                                                                            Group A
Count

0                                                                            Group B
1        2    3        4   5       6       7       8       9

X

Cas es weighted by F

6) Below is the same graph, except “% of cases” has been chosen for the vertical axis. The
percent is the computed separately for the two groups, e.g., about 35% of Group B
scored 8.

40
30

30

20

20

10

10                                                                        GROUP
Percent
Percent

Group A
0
0                                                                            Group B
1       2         3       4       5       6       7       8    9
1        2    3        4   5       6       7       8       9
X
X
Cas es weight ed by F
Cas es weighted by F
GRAPHING GROUPS SEPARATELY: Line Graphs

7) Here’s a line graph showing the groups separately. This is called a multiple line graph,
with lines defined by group. We see that the scores are higher for Group B, the
frequencies are higher, and the shape is different.

16

14

12

10

8

6

4                                                    GROUP

2                                                      Group A
Count

0                                                      Group B
1      2       3        4   5   6   7   8   9

X

Cas es weight ed by F

8) Below is the same graph, except “% of cases” has been chosen for the vertical axis. The
percent is the computed separately for the two groups, e.g., about 35% of Group B
scored 8.

40

30

20

10                                                   GROUP
Percent

Group A

0                                                      Group B
1      2       3        4   5   6   7   8   9

X

Cas es weight ed by F
HOW TO CREATE GRAPHS FOR GROUPS

OBTAINING GRAPH 5: CLUSTERED BAR GRAPH

Choose Graphs…Bar…,

In the Bar Charts box

Choose Clustered and Summaries for groups of cases

Click on Define

In the Define Clustered Bar box

Choose N of Cases in the Lines Represent box

Move x to the Category Axis box

Move group to the Define Clusters by box

Click on OK

OBTAINING GRAPH 7: MULTIPLE LINE GRAPH

Choose Graphs…Line…,

In the Line Charts box

Choose Multiple and Summaries for groups of cases

Click on Define

In the Define Multiple Lines box

Choose N of Cases in the Lines Represent box

Move x to the Category Axis box

Move group to the Define Lines by box

Click on OK

```
To top