cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
Sincyp
Level I

Constrained linear model

How can I constrain the range of coefficients of variables in a multi-linear model? 

1 REPLY 1

Re: Constrained linear model

It is difficult to answer your question without any information about your problem. Generally, though, the fitting platforms in JMP for linear models do not use constraints other than the shrinkage techniques in Analyze > Fit Model > Generalized Regression such as ridge regression or LASSO..

 

You can use the Nonlinear platform and define the linear model with indicator functions that switch coefficients off (set to 0) if they exceed the desired range. The expression would be of the form beta0 + (lo < beta1 < hi)*beta1*X but I do not know about convergence in such a model.

 

This example illustrates the approach using weight versus height in the Big Class data set. Define the model as a column formula in a new data column: I wanted to constrain the slope to 3.5-4.0 in this example.

formula.PNG

 

Select Analyze > Specialized Modeling > Nonlinear and complete the launch dialog like this:

launch.PNG

 

Click OK and make sure that all the criteria are correct before clicking Go.

nonliner.PNG

 

Here is the equivalent fit using Bivariate.

bivariate.PNG

Recommended Articles