cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Sign-in to the JMP Community will be unavailable intermittently Dec. 6-7 due to a system update. Thank you for your understanding!
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.
  • JMP 19 is here! Learn more about the new features.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
kachveder
Level III

How to write text into a JMP report, Fit model

Hi there,

 

I was wondering if I could get some help with writing a note into a JMP script for fitting a model. I have the following JMP script that I want to add notes in for each model fit in the group of 4:

 

Fit Model(
	SendToByGroup( {:group 1 == "A", :group 2 == "C"} ),
// add a manual note here
	Y( :Y ),
	By( :group 1, :group 2 ),
	Effects( :X ),
	Personality( "Standard Least Squares" ),
	Emphasis( "Effect Leverage" ),
	SendToByGroup(
		{:group 1 == "A", :group 2 == "C"},
		Run(
			:Y << {Summary of Fit( 1 ), Analysis of Variance( 1 ),
			Parameter Estimates( 1 ), Scaled Estimates( 0 ),
			Plot Actual by Predicted( 1 ), Plot Residual by Predicted( 1 ),
			Plot Studentized Residuals( 0 ), Plot Effect Leverage( 1 ),
			Plot Residual by Normal Quantiles( 0 ), Box Cox Y Transformation( 0 )}
		)
	),
	SendToByGroup(
// add a manual note here
		{:group 1 == "A", :group 2 == "D"},
		Run(
			:Y << {Summary of Fit( 1 ), Analysis of Variance( 0 ),
			Parameter Estimates( 1 ), Lack of Fit( 0 ),
			Plot Actual by Predicted( 0 ), Plot Residual by Predicted( 0 ),
			Plot Studentized Residuals( 0 ), Plot Effect Leverage( 0 ),
			Plot Residual by Normal Quantiles( 0 ), Box Cox Y Transformation( 0 )}
		)
	),
	SendToByGroup(
// add a manual note here
		{:group 1 == "B", :group 2 == "C"},
		Run(
			:Y << {Summary of Fit( 1 ), Analysis of Variance( 0 ),
			Parameter Estimates( 1 ), Lack of Fit( 0 ),
			Plot Actual by Predicted( 0 ), Plot Residual by Predicted( 0 ),
			Plot Studentized Residuals( 0 ), Plot Effect Leverage( 0 ),
			Plot Residual by Normal Quantiles( 0 ), Box Cox Y Transformation( 0 )}
		)
	),
	SendToByGroup(
// add a manual note here
		{:group 1 == "B", :group 2 == "D"},
		Run(
			:Y << {Summary of Fit( 1 ), Analysis of Variance( 1 ),
			Parameter Estimates( 1 ), Lack of Fit( 0 ), Scaled Estimates( 0 ),
			Plot Actual by Predicted( 1 ), Plot Residual by Predicted( 1 ),
			Plot Studentized Residuals( 0 ), Plot Effect Leverage( 1 ),
			Plot Residual by Normal Quantiles( 0 ), Box Cox Y Transformation( 0 )}
		)
	)
)

Is there a way to write a note so that I can say, above the JMP output in the JMP report for a model fit "this is the model fit for ... which shows ..."

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: How to write text into a JMP report, Fit model

I am not aware of being able to add a displayable note at the points in your script where you indicate, however, such notes can be added at the bottom of the script.  See my example

Names Default To Here( 1 );
dt = Current Data Table();
fm = Fit Model(By( :group 1, :group 2 ),
	SendToByGroup( {:group 1 == "A", :group 2 == "C"} ),
// add a manual note here
	Y( :Y ),
	Effects( :X ),
	Personality( "Standard Least Squares" ),
	Emphasis( "Effect Leverage" ),
	SendToByGroup(
		{:group 1 == "A", :group 2 == "C"},
		Run(
			:Y << {Summary of Fit( 1 ), Analysis of Variance( 1 ),
			Parameter Estimates( 1 ), Scaled Estimates( 0 ),
			Plot Actual by Predicted( 1 ), Plot Residual by Predicted( 1 ),
			Plot Studentized Residuals( 0 ), Plot Effect Leverage( 1 ),
			Plot Residual by Normal Quantiles( 0 ), Box Cox Y Transformation( 0 )}
		)
	),
	SendToByGroup(
// add a manual note here
		{:group 1 == "A", :group 2 == "D"},
		Run(
			:Y << {Summary of Fit( 1 ), Analysis of Variance( 0 ),
			Parameter Estimates( 1 ), Lack of Fit( 0 ),
			Plot Actual by Predicted( 0 ), Plot Residual by Predicted( 0 ),
			Plot Studentized Residuals( 0 ), Plot Effect Leverage( 0 ),
			Plot Residual by Normal Quantiles( 0 ), Box Cox Y Transformation( 0 )}
		)
	),
	SendToByGroup(
// add a manual note here
		{:group 1 == "B", :group 2 == "C"},
		Run(
			:Y << {Summary of Fit( 1 ), Analysis of Variance( 0 ),
			Parameter Estimates( 1 ), Lack of Fit( 0 ),
			Plot Actual by Predicted( 0 ), Plot Residual by Predicted( 0 ),
			Plot Studentized Residuals( 0 ), Plot Effect Leverage( 0 ),
			Plot Residual by Normal Quantiles( 0 ), Box Cox Y Transformation( 0 )}
		)
	),
	SendToByGroup(
// add a manual note here
		{:group 1 == "B", :group 2 == "D"},
		Run(
			:Y << {Summary of Fit( 1 ), Analysis of Variance( 1 ),
			Parameter Estimates( 1 ), Lack of Fit( 0 ), Scaled Estimates( 0 ),
			Plot Actual by Predicted( 1 ), Plot Residual by Predicted( 1 ),
			Plot Studentized Residuals( 0 ), Plot Effect Leverage( 1 ),
			Plot Residual by Normal Quantiles( 0 ), Box Cox Y Transformation( 0 )}
		)
	)
);

(report(fm[1])["Response Y group 1=A, group 2=C"])<<prepend(text box("Note 1"));
(report(fm[2])[OutlineBox(1)])<<prepend(text box("Note 2"));
Jim

View solution in original post

2 REPLIES 2
kachveder
Level III

Re: How to write text into a JMP report, Fit model

My bad, I forgot to upload the JMP file with the data. 

txnelson
Super User

Re: How to write text into a JMP report, Fit model

I am not aware of being able to add a displayable note at the points in your script where you indicate, however, such notes can be added at the bottom of the script.  See my example

Names Default To Here( 1 );
dt = Current Data Table();
fm = Fit Model(By( :group 1, :group 2 ),
	SendToByGroup( {:group 1 == "A", :group 2 == "C"} ),
// add a manual note here
	Y( :Y ),
	Effects( :X ),
	Personality( "Standard Least Squares" ),
	Emphasis( "Effect Leverage" ),
	SendToByGroup(
		{:group 1 == "A", :group 2 == "C"},
		Run(
			:Y << {Summary of Fit( 1 ), Analysis of Variance( 1 ),
			Parameter Estimates( 1 ), Scaled Estimates( 0 ),
			Plot Actual by Predicted( 1 ), Plot Residual by Predicted( 1 ),
			Plot Studentized Residuals( 0 ), Plot Effect Leverage( 1 ),
			Plot Residual by Normal Quantiles( 0 ), Box Cox Y Transformation( 0 )}
		)
	),
	SendToByGroup(
// add a manual note here
		{:group 1 == "A", :group 2 == "D"},
		Run(
			:Y << {Summary of Fit( 1 ), Analysis of Variance( 0 ),
			Parameter Estimates( 1 ), Lack of Fit( 0 ),
			Plot Actual by Predicted( 0 ), Plot Residual by Predicted( 0 ),
			Plot Studentized Residuals( 0 ), Plot Effect Leverage( 0 ),
			Plot Residual by Normal Quantiles( 0 ), Box Cox Y Transformation( 0 )}
		)
	),
	SendToByGroup(
// add a manual note here
		{:group 1 == "B", :group 2 == "C"},
		Run(
			:Y << {Summary of Fit( 1 ), Analysis of Variance( 0 ),
			Parameter Estimates( 1 ), Lack of Fit( 0 ),
			Plot Actual by Predicted( 0 ), Plot Residual by Predicted( 0 ),
			Plot Studentized Residuals( 0 ), Plot Effect Leverage( 0 ),
			Plot Residual by Normal Quantiles( 0 ), Box Cox Y Transformation( 0 )}
		)
	),
	SendToByGroup(
// add a manual note here
		{:group 1 == "B", :group 2 == "D"},
		Run(
			:Y << {Summary of Fit( 1 ), Analysis of Variance( 1 ),
			Parameter Estimates( 1 ), Lack of Fit( 0 ), Scaled Estimates( 0 ),
			Plot Actual by Predicted( 1 ), Plot Residual by Predicted( 1 ),
			Plot Studentized Residuals( 0 ), Plot Effect Leverage( 1 ),
			Plot Residual by Normal Quantiles( 0 ), Box Cox Y Transformation( 0 )}
		)
	)
);

(report(fm[1])["Response Y group 1=A, group 2=C"])<<prepend(text box("Note 1"));
(report(fm[2])[OutlineBox(1)])<<prepend(text box("Note 2"));
Jim

Recommended Articles