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


Fitting Linear Models > Standard Least Squares Examples > Example of a Simple Repeated Measures Model
Publication date: 04/21/2023

Example of a Simple Repeated Measures Model

Use the Standard Least Squares personality of the Fit Model platform to fit a model to repeated measures data. You have data on the distance traveled by each of six animals in each of the four seasons. There are two species and the animal identifier is nested within species. Since these six animals are representatives of larger species populations, you decide to treat subject as a random effect. You want to model the response, miles, as a function of species and season, accounting for the fact that there are repeated measures for each animal.

1. Select Help > Sample Data Folder and open Animals.jmp.

2. Select Analyze > Fit Model.

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

4. In the Select Columns list, select species and subject.

5. Click Add.

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

7. Click Nest.

8. In the Construct Model Effects list, select subject[species].

9. Select Attributes > Random Effect.

10. In the Select Columns list, select season.

11. Click Add.

12. In the Construct Model Effects list, select season. In the Select Columns list, click species. Both effects should be highlighted.

13. Click Cross.

14. Click Run.

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