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
vincem
Level II

Fitting Different Slopes Common Intercepts

Hi - i am unsure how to fit a regression model with different slopes BUT a common Interecpt. 

 

Assume Y=response, GROUP (2-levels),  TIme (Covariate)

 

Kind regards, Vince

13 REPLIES 13
hardner
Level VI

Re: Fitting Different Slopes Common Intercepts

on here appreciating this older tip about using Fit Model by not centering polynomials and just thought I'd note that in Fit Model the Expanded Estimates are a little less cryptic, especially if there were more groups.  I'll be using those where I want to get the slopes out of there with JSL but can see that the plot from Fit Y by X is nicer.

 

hardner_0-1713278170818.png

 

vincem
Level II

Re: Fitting Different Slopes Common Intercepts

Thansk...however when i adopt the below approach the graph of Y verus TIME by group - doesnt appear to haev a common intercept. Howevre if i change Time to an ordinal variable..seems to work OK.

dale_lehman
Level VII

Re: Fitting Different Slopes Common Intercepts

Here is another approach, using the Nonlinear platform.  Attached is an example:  you need to set parameters to be solved for, with a single intercept but varying slope parameters for the two groups.  The script is saved for the solution.

vincem
Level II

Re: Fitting Different Slopes Common Intercepts

thanks much appreciated.