File Exchange > Data Analysis >    Linear Mixed Effects Model

OriginLab Technical Support
Date Added:
Last Update:
Downloads (90 Days):
Total Ratings:
File Size:
160 KB
Average Rating:
File Name:
File Version:
Minimum Versions:

Fit a linear model with fixed effects and random effects.

Screen Shot and Video:


This App can be used to fit a linear model for data collected in groups. A mixed effects model consists of fixed effects and random effects. Fixed effects are conventional linear regression. Random effects have linear coefficients that vary with respect to one or more grouping variables.


Download the file "lmm.opx", and then drag-and-drop onto the Origin workspace. An icon will appear in the Apps gallery window.


  1. Activate a worksheet with data and click the icon in the Apps Gallery window to open the dialog.
  2. In the Input tab, select a column as Dependent Variable. Select one or multiple columns for Continuous and Categorical Independent Variables. If Categorical data is chosen, Reference Factor Level for each column can be specified.

    Note: You can specify one or two subject variables (grouping variables). If two subject variables are specified, the 1st subject variable is considered to be nested within the 2nd subject variable.

  3. In the Settings tab, Model Type provides two options: Main Effects and Custom Model.
    If Custom Model is chosen, you can add any main effects and interaction terms to the model in the opened dialog. You can also modify the model by clicking the button on the right of Model box. You need to select models for both Fixed Effects and Random EffectsInclude Intercept option specifies whether to include the intercept parameter in the regression. Modify Accuracy option if fitting fails to reach required accuracy.
  4. In the Quantities tab, select quantities to output in the report sheet.
  5. In Plots tab, specify whether to create Fitted Plot and Residual Plot.
  6. Click OK button.

Sample OPJU File
This app provides a sample OPJU file.  Right click the App icon in the Apps Gallery window, and choose Show Samples Folder from the short-cut menu. A folder will open. Drag-and-drop the project file LinearMixedEffects Sample.opju from the folder onto Origin. The Notes window in the project shows detailed steps.
Note: If you wish to save the OPJU after changing, it is recommended that you save to a different folder location (e.g. User Files Folder).


v1.23 3/23/2023 Update dll dependency
v1.22 11/23/2022 Supported large datasets.
v1.21: Better support missing values.
v1.1: Fix wrong random effects parameters issue with unsorted category.

Reviews and Comments:

01/29/2023OriginLabHi, Strelok163

You can contact us by submitting a support ticket.

01/28/2023Strelok163Hello. I can't create a new topic on the forum. Where can I ask a question? (you need to attach an image)

We don't support GLMM so far, but we plan to make a new app to support this in the future. (ID: APPS-1169).
OriginLab Technical Support

12/09/2022kinesicoHi there,

I've been trying to run GLMM using the app available, but I cannot! It does not work! Would you mind helping me (us). Recording a video tutorial would be great!

Thank you in advance.



05/24/2022yukiOriginlabHi borosemil, I am sorry that we don't support GLMM so far, but we plan to make a new app to support this in the future. (ID: APPS-1169).
OriginLab Technical Support

05/24/2022borosemilI do not understand how can I perform Generalized linear mixed models in Origin! I cannot find GLMM app only LMM, although it is a fundamental widely used method.