Model Fitting: Generalized Linear Models

Exploring the Data


Open the Ship data set.

You can use box plots to explore how the ratio of Y to months varies according to the levels of the classification variables. The section "Box Plots" describes how to create a box plot.

Figure 24.13 shows plots that indicate how the number of damage incidents per month varies with the explanatory variables. The Variable Transformation Wizard (described in Chapter 32, "Variable Transformations") was used to create a new variable, IncidentsPerMonth, as the ratio of Y and months. The new variable was created by using the Y / X transformation from the Two Variable family of transformations.

The three box plots indicate that the mean of IncidentsPerMonth is as follows:

This preliminary analysis indicates that the main effects of type, year, and period are important in predicting IncidentsPerMonth. The next section creates a generalized linear model with these effects.

ugfitgenmod2eda.png (67971 bytes)

Figure 24.13: Incidents per Month,Grouped by Classification Variables

Previous Page | Next Page | Top of Page