Subscribe Bookmark RSS Feed

JMP Graph Builder regression line with known slope (slope user defined)

ram

Contributor

Joined:

Jun 5, 2017

Hi All,

I like to use Graph builder for  X-Y correlation charts instead of using Bivariate. Does someone knows weather in graph builder we can do a regression line or fit line with known slope?  can user define the slope of fit? i want to use graph builder since i want to have multiple charts separated in GX and GY groupes.

 

Thank you very much for your inputs.

Ram

4 REPLIES
txnelson

Super User

Joined:

Jun 22, 2012

Line of Fit is one of the items that can be placed onto a Graph Builder graph

graph builder line of fit.PNG

Jim
ram

Contributor

Joined:

Jun 5, 2017

How can i adjust slope or how i can change the slope of fit line.
txnelson

Super User

Joined:

Jun 22, 2012

While there is nothing as straight forward as in the Bivariate graph, for adding functions, you can use the Customize capability in Graph Builder, and get any kind of function displayed you desiregraph builder line of fit special.PNG

Here is a very simple linear equasion added to Graph Builder using the following addition to the Customize ability 

Pen Color( "red" );
Pen Size( 3 );
intercept = 50;
beta = .2;
Y Function( intercept + beta * x, x );

graph builder simple line.PNG

Jim
julian

Staff

Joined:

Jun 25, 2014

Hi @ram,
Yes, you can do this with a custom graphics script. In graph builder, or any graph for that matter, right click > customize. Then, click the plus sign to add a new graphics script. There is a template for a y function that will work for you, and you can customize/change the slope (or anything else you like) about the y function. Below is a brief video showing that. Is this what you were looking for?

 

I hope this helps!

Julian

(view in My Videos)