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

How to read and update Effect content in the fit model with JSL?

Hi folks,

I have several models in the JMP data table, I know how to read the scripts with JSL. Is there any easy way to extract the effect from this script, make changes and replace with a new effect? If Block is inside the model effect, I need to change it into a random effect to run model again with REML. Thank you so much for your help.
1 REPLY 1
Byron_JMP
Staff

Re: How to read and update Effect content in the fit model with JSL?

Here's an example using Big Class.JMP. 

Fit Model(
	Y( :weight ),
	Effects( :height, :sex, :sex * :height ),
	Personality( "Standard Least Squares" ),
	Emphasis( "Effect Leverage" ),
	Run(
		:weight << {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 )}
	)
);

Fit Model(
	Y( :weight ),
	Effects( :height, :sex * :height ),
	Random Effects( :sex ),
	NoBounds( 1 ),
	Personality( "Standard Least Squares" ),
	Method( "REML" ),
	Emphasis( "Minimal Report" ),
	Run(
		:weight << {Summary of Fit( 1 ), Analysis of Variance( 0 ),
		Parameter Estimates( 1 ), Scaled Estimates( 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 )}
	)
)

In the first model there are two terms and their interaction.

 

The second model has :sex added as a random effect.

 

 

A good way to see the difference in the Model's JSL it to create it without the desired feature and with the desired feature and compare the two.

 

 

JMP Systems Engineer, Health and Life Sciences (Pharma)