For the latest version of JMP Help, visit JMP.com/help.


Fitting Linear Models > Generalized Linear Models > Additional Examples of the Generalized Linear Models Personality > Using Contrasts to Compare Differences in the Levels of a Variable
Publication date: 11/29/2021

Using Contrasts to Compare Differences in the Levels of a Variable

This example continues the crab satellite example in Example of a Generalized Linear Model. Suppose that you want to test whether female crabs with good spines attracted a different number of male crabs (satellites) than female crabs with worn or broken spines.

1. Complete step 1 through step 7 of Example of a Generalized Linear Model.

2. Click the red triangle next to Generalized Linear Model Fit and select Contrast. The Choose effects for contrast window appears.

3. Select spine, the variable of interest, and click Go.

4. To compare the crabs with good spines to crabs with worn or broken spines, click the + button beside Both Good and the - button beside both One Worn/Broken and Both Worn/Broken.

This creates a contrast specification that compares the female crabs with good spines against the female crabs with worn or broken spines.

Figure 12.5 Contrast Specification Window 

Contrast Specification Window

5. Click Done.

Figure 12.6 Contrast Report 

Contrast Report

The Prob>Chisq, 0.8242, is much greater than 0.05, so we cannot conclude that there is a difference in satellite attraction based on spine condition.

Want more information? Have questions? Get answers in the JMP User Community (community.jmp.com).