|
We first
illustrate how to use box-and-whisker plots to display univariate
distributions of level-1 variables for each level-2 unit,
with and without a level-2 classification variable. Using
the HS&B data, we display graphical summaries of the mathematics
achievement variable, MATHACH, and simultaneously show differences
in the student scores within a school and among schools.
To
prepare box-and-whisker plots
1.From
the HLM window open the File menu.
2.Choose
Create a new model using an existing MDM file to open
an Open MDM File dialog box.
3.Open
hsb.mdm. Open the File menu,
choose Graph Data
box-whisker plots to open
an Choose Y for box plot dialog box.
4.Select
MATHACH in the Y-axis drop-down list box.
5.Choose
the number of groups to be used for graphing. There are three
options: (a) First ten groups; (b) Random sample
of spec'd prob (specified probability) and (c) All
groups (n = total number of groups) for users to choose
from in the Number of groups drop-down list box. The
selection of option (b) requires the user to specify the proportion
or percent of the level-2 units to be included. to do so,
enter a probability into the text box for Probability (0
to 1). In our example, we randomly select 10 percent of
the schools to illustrate. we select Random sample of spec'd
prob from the Number of groups drop-down list box.
Enter 0.1 into the text box for Probability (0 to
1) to indicate that 10 percent or a proportion of .1 of
the schools will be used.
6.Specify
the arrangement of the plots by either (a) the original order
of the groups as appeared in the data set or (b) the median
in an ascending order. Click on the selection button for median
in the Sort by section to arrange the box-and-whisker
plots of MATHACH by median in an ascending order.
7.Click
OK to display the plots.

The
figure gives side-by-side graphical summaries of the distributions
of MATHACH for the sixteen schools sorted by median. The x-axis
denotes number of schools in the display and the y-axis mathematics
achievement. The plot tells us that the first school from
the left has a median score of about 6.05, which is the lowest
school median in this group. The distribution of the scores
of the students in this school is positively skewed and there
is an outlier at the upper end.
The
third and the fourth schools from the left have similar distributions
of mathematics scores. Compared to the distribution of the
scores of the adjacent school on the right, however, the scores
of these two schools display greater variability, as defined
by the lengths of the boxes or interquartile ranges. In addition,
there is an outlier at the upper end of the distribution for
the fifth school. The highest median mathematics score among
the 16 schools was 19.08.
Optional:
1. WHLM
allows users to list the raw data of a specific group that
is graphically summarized in one of the box-and-whisker plots
as well. To see the data of a specific level-2 unit, click
on one of the box-and-whisker plots (near the median is usually
a good place) in the graph shown above, which brings up the
following dialog box:
Click
Data and then a dialog box containing the data of a
specific group will appear. In our example, we examine the
raw scores of the school with the highest median). The
title bar of the figure below tells us the level-2 ID of the
box-and-whisker plot we selected is 3427. # is a zero-based
counter for group plots.
As
the box-and-whisker plots are plotted individually in the
example, it is 0. X tells us that the data are from the thirteenth
school displayed on the plot. Y1 to Y11 list the mathematics
scores for the first eleven students in School 3427. Move
the bottom scroll box to the left to display more scores for
the other students.
2. To
edit the graph, open the Edit menu and choose Graph
Parameters.... The user can change attributes such
as size and color of the graph, border, and plotting area.
By choosing Copy graph or Copy current page
(when there are more than one pages of graphs), users can
directly copy and paste the graph or current page into a word
processing or graphics document.
3. To
print the graph, open the File menu, select Print
current page or Print selected graph when there
are more than one graph. Users can choose Printing Options...to
change printing parameters such as choice of background, border
type, aspect ratio(the ratio of the x-axis length to the y-axis
length, the default is 5/3), and printingstyle.
To save
the graph for future use by opening the File menu and
choose Save as metafile. A Save as dialog box
will open. Enter a filename for the file and click OK.
The filecan be saved as an Enhanced Metafile (.emf) (default
and preferred as it holds moreinformation than the other option)
or Windows Metafile (.wmf). Users can use word processing
programs to insert the graph file into the text. For example,
to insert the saved .emf file into Word, choose Insert-...Picture-...From
File from Words main menu.
4.
To make modifications to the specifications, select Graph
Settings. The Equation Graphing dialog box will
appear. We are going to illustrate this by addinga level-2
classification variable next.
To
include a level-2 classification variable
After
choosing the Y-Axis variable, select the level-2 classification
variable in the Z-focus drop-down list box. There are
two types of level-2 classificationvariables, categorical
and continuous. For categorical variables, WHLM will classify
the plots with the levels of the variables. For continuous
variables, users can choose either to dichotomize them using
median splits, or trichotomize them into three groups:(a)
0 to 24th percentile; (b) 25th to 75th percentile;
and (c) 76th percentile and above. These two options,
available when a continuous classification variable is chosen,
can be found in the lower Z-focus drop-down list box.
In our example, we will choose school sector, Catholic vs.
public school, as the classification variable. To continue
working on the plot we have just made, click Graph Settings
to open theEquation Graphing dialog box. Select SECTOR
in the Z-focus dialog box. The following graph will
be displayed.
In the
graph, the box-and-whisker plots for Catholic and public schools
are coded differently (red for Catholic and blue for public
schools). The colored graphs suggest that the three schools
that have the highest median mathematics scores are Catholic
schools. The school with the lowest average belongs to the
public sector.
Users can
edit the legends by clicking on them in the graph above to
open the Legend Parameters dialog box, which allows
them to make changes in the titles of the legends, their sizes
and font types, and the display of the legend box. For example,
one may like to change SECTOR = 0 in the text box below to
PUBLIC = 0 and SECTOR = 1 to CATHOLIC = 1.

|