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


Fitting Linear Models > Standard Least Squares Examples > Example of a Two-Factor Nested Random Effects Model
Publication date: 04/21/2023

Example of a Two-Factor Nested Random Effects Model

Use the Standard Least Squares personality of the Fit Model platform to fit a two-factor nested random effects model. As part of a measurement systems analysis study, 24 randomly chosen parts are measured. These parts are evenly divided among the six operators who typically measure these parts. Each operator makes three independent measurements of each of the four assigned parts.

Since the parts measured by one operator are measured only by that specific operator, Part is nested within Operator. Since the parts are a random sample of production, Part is considered a random effect. Since these specific six operators are of interest, Operator is treated as a fixed effect. Specify the appropriate model.

1. Select Help > Sample Data Folder and open Variability Data/2 Factors Nested.jmp.

2. Select Analyze > Fit Model.

3. In the Select Columns list, select Y and click Y.

4. In the Select Columns list, select Operator and Part.

5. Click Add.

6. To nest Part within Operator: In the Construct Model Effects list, select Part. In the Select Columns list, select Operator. The two effects should be highlighted.

7. Click Nest.

8. With Part[Operator] highlighted in the Construct Model Effects list, select Attributes > Random Effect.

9. Click Run.

The figure shows two plots. The first is a Variability Chart showing the three measurements by each Operator on each of the four parts. Horizontal line segments show the mean measurement for each Operator.

To construct the Variability Chart, in the 2 Factors Nested.jmp sample data table, run the data table script Variability Chart - Nested. Click the Variability Gauge red triangle, deselect Show Range Bars, and select Show Group Means.

The second plot is the Fit Least Squares report Prediction Profiler plot for Operator. This plot shows the predicted response for each operator. The vertical dashed red line set at Jane indicates that Jane’s predicted response is 0.997. You can see the correspondence between the model predictions given in the Prediction Profiler plot and the raw data in the Variability Chart.

To obtain the Prediction Profiler plot, click the Response Y red triangle and select Factor Profiling > Profiler.

These plots show how the predicted measurements for each Operator are modeled. However, keep in mind that you are not only interested in whether the operators differ in how they measure parts. You are also interested in the variability of the part measurements themselves, which requires estimation of the variance component associated with Part.

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