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


Publication date: 11/29/2021

Example of Grouping Using a By Variable

This example shows another method of grouping by specifying a By variable in the launch window. This results in separate reports and graphics for each level of the By variable (or combinations of By variables).

1. Select Help > Sample Data Library and open Big Class.jmp.

2. Select Analyze > Fit Y by X.

3. Select weight and click Y, Response.

4. Select height and click X, Factor.

5. Select sex and click By.

6. Click OK.

7. Press Ctrl, click the red triangle menu next to Bivariate Fit of weight By height sex =F, and select Fit Line from the red triangle menu.

Figure 5.25 Example of By Variable PlotsĀ 

Example of By Variable Plots

There are separate analyses for each level of the By variable (sex). So you see a scatterplot for the females and a scatterplot for the males.

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