cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Register for May 2 Mastering JMP Demo - Circumventing Common Pitfalls in Predictive Modeling
Choose Language Hide Translation Bar
View Original Published Thread

Set Y-Intercept in Script

tylerram93
Level III

Hey again,

 

Trying to have my plot have the "Fit Line" go through 0.

 

I can't find it in the online documentation.

 

Cheers,


Tyler

3 REPLIES 3


Re: Set Y-Intercept in Script

You are in the right place (Fit Y by X -> Bivariate) but don't use Fit Line command. Use Fit Special. The dialog box will contain a control so that you can constrain the y-intercept = 0.

tylerram93
Level III


Re: Set Y-Intercept in Script

Thank you for your promt answer, I guess I should have been more explicit, sorry.

 

I am scripting a Bivariate Analysis for a large numner of chips and reticles and so need to set it to zero in the code:

 

E.g.,

 

BivAnalysis = Bivariate(

Y ( Eval(yparam)),

X( Eval(xparam)),

Fitline ( {Line Color()}),

);

 

Thanks for all the help!

Jeff_Perkinson
Community Manager Community Manager


Re: Set Y-Intercept in Script

There are two ways to figure this out.

 

1) Use Help->Scripting Index to look at the Bivariate object where you'll see all the messages it can take, including Fit Special.

 

JMPScreenSnapz113.png

 

2) Do it once interactively and then look at the script that JMP gives you to reproduce it.

 

FitSpecialScript.mp4
Video Player is loading.
Current Time 0:00
Duration 0:13
Loaded: 0.00%
Stream Type LIVE
Remaining Time 0:13
 
1x
    • Chapters
    • descriptions off, selected
    • captions off, selected
    • default, selected
    (view in My Videos)

    -Jeff