Model Fitting: Generalized Linear Models

Example 1: Linear Regression with Classification Variables

In this example you use the Generalized Linear Models analysis to fit a linear regression model with classification variables and an interaction term. In particular, you model how two variables affect the change in blood pressure in a designed experiment.

The Drug data set contains results of an experiment carried out to evaluate the effect of four drugs with three experimentally induced diseases. Each drug-by-disease combination was applied to six randomly selected dogs. The response variable, chang_bp, is the increase in systolic blood pressure due to the treatment. The variables drug and disease are classification variables: their values identify distinct levels or groups.


Open the Drug data set.

You need to specify that the drug and disease variables are nominal in order to model them as classification variables. "Context Menus" in Chapter 4, "The Data Table," describes measure levels for variables. The following steps change the measure level of these variables from interval to nominal:


Select the drug and disease variables by holding down the CTRL key while you click on the column heading for each variable.


Right-click on the column heading for either variable and select Nominal from the pop-up menu, as shown in Figure 24.1.



ugfitgenmodnominal.png (17968 bytes)

Figure 24.1: Changing the Measure Level for Variables


Clear the selected variables by clicking the blank cell in the upper-left corner of the data table.


Exploring the Data

Creating an Initial Model

Revising the Model

Previous Page | Next Page | Top of Page