Model Fitting: Generalized Linear Models

Creating the Offset Variable

As discussed earlier in this example, the quantity \log({\hv months}) is an offset variable for this model. To create this variable, you can use the Variable Transformation Wizard, described in Chapter 32, "Variable Transformations."


Select Analysis \blacktriangleright\,Variable Transformation from the main menu.

The Variable Transformation Wizard in Figure 24.14 appears.

ugfitgenmod2transform1.png (8876 bytes)

Figure 24.14: Selecting a Transformation

The transformation log(Y+a) is highlighted by default. Since this is the desired transformation, you can proceed to the next page of the wizard.


Click Next.

The wizard displays the page shown in Figure 24.15. Note that the transformation appears in the page's title bar.

ugfitgenmod2transform2.png (8455 bytes)

Figure 24.15: Selecting a Variable and a Parameter


Select the months variable, and click Set Y.


Click Finish.

Because there are six observations for which months=0, a warning message appears (Figure 24.16) informing you that the transformed values for these observations are set to missing values.

ugfitgenmod2transformwarning.png (5151 bytes)

Figure 24.16: A Warning Message


Click OK to dismiss the warning message.

The new variable is named Log_months. It contains six missing values. Observations with missing values for the explanatory variables (including the offset variable) or the response variable are not used in fitting the model.

Previous Page | Next Page | Top of Page