cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
Choose Language Hide Translation Bar
lzhang83
Level I

multivariate segmented regression

Hi,

 

I would like to use JMP for a multivariate segmented linear regression. For example, I have a data set df with response variable Y and three predictors X1, X2, X3, with corresponding breakpoints a1, a2, a3. Which module I can use for modeling and prediction for segmented regression and how to use it? I am using JMP 14.1.0, and tried Analyze > Specialized Modeling > Nonliear but still not sure how to input intial breakpoints and run for modeling. Could you help me with this? JSL code will be also helpful. 

 

Thanks.

 

3 REPLIES 3

Re: multivariate segmented regression

You are on the right track. The Nonlinear platform is the most flexible fitting method in JMP for any MLE. Here is an example from Big Class where I fit weight versus height with a hinge at height = 62.5 and plotted the fitted function in Graph Builder:

 

Capture.PNG

 

This is the custome model formula that I created for Nonlinear:

 

Capture.PNG

 

You should be able to extrapolate what I did to three predictors.

lzhang83
Level I

Re: multivariate segmented regression

When I use Analyze > Specialized Model > Nonlinear, I can only input one variable in "X, Predictor Formula" at one time. How can I input multiple variables? Another question is, how did you create the custom model formula? Did you create another column for new formula? Could you show me how to do this in more steps?

Re: multivariate segmented regression

You can only assign one data column to the X, Predictor Formula role. The formula, though, can use more than one predictor variable.

 

Yes, I made a new data column with a formula to define the custom model for Nonlinear. Please select Help > Books > Using JMP and see the Calculate Values with Formulas section in the Work with Your Data chapter devoted to building formulas. Then see the later Formula Editor chapter for more details. Lots of good information and examples there!

 

There are also more examples specifically of using column formulas for custom models in Nonlinear in the chapter devoted to this platform in Help > Books > Predictive and Specialized Modeling book.