发布日期: 11/15/2021

Send Messages to an Object

Suppose that you want to send a message to an object in the output. For example, in Fit Model, you want to send the Response Limits message to the Profiler object, Use the subscript operator ([ ]) to refer to the Profiler object.

dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
 
fm = dt << Fit Model(
	Y( :height ),
	Effects( :age, :sex, :weight, :age * :weight, :sex * :weight ),
	Personality( Standard Least Squares ),
	Emphasis( Effect Screening ),
	Run
);
 
obj = fm << Profiler(
	1,
	Confidence Intervals( 1 ),
	Desirability Functions( 1 ),
	Term Value( age( 12 ), sex( "F" ), weight( 105 ) )
);
 
Show( Profiler[1] << Get Desirability ); // show the limits before
 
Profiler[1] << (height << Response Limits(
	{Lower( 50, 0.95 ), Middle( 58, 0.7 ), Upper( 70, 0.066 ),
	Goal( "Minimize" ), Importance( 1 )}
));
Wait( 0.1 ); // for demonstration purposes
Show( Profiler[1] << Get Desirability ); // show the limits after
需要更多信息?有问题?从 JMP 用户社区得到解答 (community.jmp.com).