File Exchange > Data Analysis >    General Linear Regression

Author:
OriginLab Technical Support
Date Added:
10/25/2016
Last Update:
6/13/2025
Downloads (90 Days):
560
Total Ratings:
4
File Size:
1327 KB
Average Rating:
File Name:
GLR.opx
File Version:
1.53
Minimum Versions:
License:
Free
Type:
App
Summary:

Perform regression to study the relationship between a response variable and categorical or continuous independent variables.

Screen Shot and Video:
Description:

PURPOSE
This tool can be used to perform linear regression with categorical or continuous independent variables. And it can also be used for ANCOVA by creating dummy variables for categorical independent variables. Features include:

  • Support custom model with interaction terms.
  • Use calculated coefficients for predictions.
  • Output effects test result to determine which effects are significant.
  • Create fitted plot and diagnostic graphs.

INSTALLATION
Download the file GLR.opx, and then drag-and-drop onto the Origin workspace. An icon will appear in the Apps Gallery window.
NOTE: This tool requires OriginPro.

REQUIRE PACKAGES
This app requires orgutils app.

OPERATION

  1. Click the General Linear Regression icon in the Apps Gallery window to open the dialog.
  2. In the Input tab, choose a column for Dependent Variable, and columns for Continuous and Categorical Independent Variables.
    Either Continuous or Categorical can be empty, but they can't both be empty. 
    If Categorical data is chosen, Reference Factor Level for each column can be specified.
  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. Include Intercept option specifies whether to include the intercept parameter in the regression. Coding Type is used to define the coding scheme for categorical independent variables. Type (1, 0) estimates the difference between each level mean and the reference level's mean while (-1, 0, 1) estimates the difference between each level mean and the overall mean.
  4. In the Quantities tab, check options to control which results to output in the report sheet, including Fit Parameters (Standard Error, Confidence Limits, t-Value and Prob>|t|), Fit Statistics (Residual Sum of Squares, Reduced Chi-Sqr, R Value, R-Square and Adj. R-Square) and Effect Tests.
  5. In the Fits and Diagnostics tab, specify whether to output Confidence Limits of Fitted Y, Residuals (Regular, Standardized, Studentized and Studentized Deleted) and Influence (Leverages, Cook's Distance and Atkinson's T).
  6. In Plots tab, specify whether to create Fitted Plot and Residual Plot. Residual plot is a four-panel graph including residual vs row order plot, histogram of residual, residual vs fitted Y plot and P-P plot for residual. And Residual Type can be specified.
  7. Click OK button, a report sheet, a report data sheet and a plot data sheet will be created.

NOTES

  1. If a row in input data contains one or more missing values, the entire row will be excluded from the analysis.
  2. Only the entire column is supported for input data. 
  3. Data Filter is not supported in the analysis.

NEW FEATURES
In v1.53, more features are supported in the app. Major new features include:

  • Find Y from X
    Check Find Y from X check box in General Linear Regression dialog's Fits and Diagnostics tab.

    In the created FindYfromX sheet, type values for independent variables at which to predict, predicted y values will be calculated automatically.
  • Stepwise
    In General Linear Regression dialog's Stepwise tab, select a method to define how to fit the model (four options are available: NoneStepwiseForward SelectionBackward Elimination).
  • Optimizer
    This feature requires at least Origin 2025b. Perform General Linear Regression, and choose Manual or Auto from Recalculate dropdown list, and make the generated report active, click on the edge of the report. In the opened mini toolbar, click Optimizer button, and it will open the Optimizer dialog.

Updates:

v1.53 6/11/2025 Supported response optimizer.
v1.41 5/28/2025 Updated graph templates.
v1.40 5/22/2025 Supported graph size in report.
v1.39 5/14/2025 Supported stepwise.
v1.38 3/21/2025 Fixed bug.
v1.37 3/18/2025 Supported to predict y for given x.
v1.36 3/11/2025 Added more statistics results.
v1.2 1/15/2025 Added VIF.
v1.1 4/20/2023 Updated to make it compatible with Origin 2023b.

Reviews and Comments:
06/27/2025OriginLabHi,
If you didn’t register your Origin, orgutils won’t be auto-downloaded.
Please register your Origin by "Help: Register Online", and then manually download orgutils from below:
https://www.originlab.com/FileExchange/details.aspx?fid=1052
Thanks,
OriginLab Technical Service

06/26/2025alhaythm_ahmedIt does not work at all and keeps showing : "The following dependencies are missing: orgutils. Would you like to download and install it now? Visit App Webpage for more details."

06/26/2025alhaythm_ahmedIt does not work at all and keeps showing "The following dependencies are missing: orgutils.
Would you like to download and install it now?

Visit App Webpage for more details."

02/19/2023leewei41