Purpose
This App can be used to fit a generalized linear mixed model, which extends Linear Mixed Effects Model to non-normal data.
Installation
The app requires R software (recommended version 4.4.1) and package (lme4). If R is not yet installed on your computer, please follow these steps.
- Open the download page for R version 4.4.1
- Download the file named R-4.4.1-win.exe and install it
- Once you have successfully installed R, you can then install the App
- The App will download and install required R packages when you run it the first time.
Note that if you installed the App prior to instalilng R, the App icon will show in the Apps bar.
Simply click on that icon to continue after you have installed R.
Note: If downloading packages fails, a pop-up dialog will ask you to copy 2 lines of commands from Results Log and run them in R to complete downloading packages.
Related FAQ: FAQ-1214 What can I do when Origin has trouble launching R?
Operation
- Activate a worksheet with data and click the icon in the Apps Gallery window to open the dialog.
- 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. Select 1 or 2 subject variables for grouping variables.
- In the Settings tab, choose a Family Function for response distribution. For fixed effects, 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 Effects. Include Intercept option specifies whether to include the intercept parameter in the regression.
- In the Quantities tab, select quantities to output in the report sheet.
- In Plots tab, select plots to output in the report sheet.
- 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 Generalized Linear Mixed Model 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).
Reference
https://search.r-project.org/CRAN/refmans/lme4/html/glmer.html