cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Choose Language Hide Translation Bar

Graph Builder

I would like for Graph Builder to allow for extrapolation of the fitted regression line, confidence bands, and prediction bands (if selected) based on the x-axis range.   Currently, I can easily get extrapolated graphs using a customized module in a different software system.  However, there are limitations to the customized module and I perfer to keep my statistical analyses in JMP.   

 

 

2 Comments
hogi
Level XII

I agree, a one-click option to change the prognosis range like in Excel could help:

hogi_3-1746635104833.png

 

On the other hand, no need to wait for a new JMP version or to use another tool:
with "3" mouse clicks, this is already possible in JMP 18 (and before):


1) save the formula

hogi_0-1746634922748.png

2) add the formula column to the Y axis:

hogi_1-1746634953245.png

3) activate the formula:

hogi_2-1746635000204.png

 

 

Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
gb = Graph Builder(
	Variables(
		X( :height ),
		Y( :weight )
	),
	Elements(
		Points( X, Y ),
		Line Of Fit( X, Y),
	),
		SendToReport(
		Dispatch( {}, {:height}, ScaleBox,
			{Min( 0 ), Inc( 10 ), Minor Ticks( 1 )}
		),
		Dispatch( {}, {:weight}, ScaleBox, {Min( 0 )} )
	)
);
wait(1);


Caption ("save the fit");
	gb  << Update Element( 1, 1, 2, {Save Formula} );
wait(1);

Caption ("add fit curve as Formula");
gb  << Add Variable( {:"Line of Fit(weight)"n , Role( "Y" ), Position(1)} )
gb << Add Element( 1, 1, {Type( "Formula" ), X, Y(2)} );
Status changed to: Needs Info

Thank you for your request, and thank you to @hogi for providing a solution in the comments. Does that solve your request, or are you just looking for a one-click/easier option to accomplish this?