适合特殊限制 JSL大家好,
我正在使用 Fit Y by X Plot 并且我的绘图需要 3 个限制(控制限制、上限和下限),其中我使用了 3 次拟合特殊值并输入了所需的斜率和截距。 但我不知道如何在 JSL 中做到这一点。 这只是我将脚本保存到脚本窗口时得到的输出
Bivariate(
Y( :Age ),
X( :Sex ),
Fit Line( {Confid Curves Indiv( 1 ), Line Color( "Black" )} ),
Fit Line( {Line Color( {196, 189, 43} )} ),
Fit Line( {Line Color( {39, 174, 174} )} ),
SendToReport(
Dispatch(
{},
"Bivar Plot",
FrameBox,
{DispatchSeg( Line Seg( 1 ), {Line Color( "Black" )} ),
DispatchSeg( Line Seg( 4 ), {Line Color( "Black" )} ),
DispatchSeg( Line Seg( 5 ), {Line Color( "Black" )} ),
Row Legend(
Blade Type,
Color( 1 ),
Color Theme( "JMP Default" ),
Marker( 0 ),
Marker Theme( "" ),
Continuous Scale( 0 ),
Reverse Scale( 0 ),
Excluded Rows( 0 )
)}
),
Dispatch( {}, "Linear Fit", OutlineBox, {Close( 1 )} ),
Dispatch( {}, "Linear Fit", Outline Box( 2 ), {Close( 1 )} ),
Dispatch( {}, "Linear Fit", Outline Box( 3 ), {Close( 1 )} )
)
);有什么方法可以使用 JSL 输入或自定义截距和斜率值?
其他脚本编写回复:适合特殊限制 JSL这是一个使用 JMP 16 保存的脚本,在将其中一个 Fits 设置为 Fit Special 之后。它显示了如何指定所需的 JSL
names default to here(1);
dt=open("$sample_data/big class.jmp");
Bivariate(
Y( :Age ),
X( :height ),
Fit Line( {Confid Curves Indiv( 1 ), Line Color( "Black" )} ),
Fit Special( Intercept( 0 ), Slope( 1 ), {Line Color( {212, 73, 88} )} ),
Fit Line( {Line Color( {39, 174, 174} )} ),
SendToReport(
Dispatch(
{},
"Bivar Plot",
FrameBox,
{DispatchSeg( Line Seg( 1 ), {Line Color( "Black" )} ),
DispatchSeg( Line Seg( 4 ), {Line Color( "Black" )} ),
DispatchSeg( Line Seg( 5 ), {Line Color( "Black" )} ),
Row Legend(
Blade Type,
Color( 1 ),
Color Theme( "JMP Default" ),
Marker( 0 ),
Marker Theme( "" ),
Continuous Scale( 0 ),
Reverse Scale( 0 ),
Excluded Rows( 0 )
)}
),
Dispatch( {}, "Linear Fit", OutlineBox, {Close( 1 )} ),
Dispatch( {}, "Linear Fit", Outline Box( 2 ), {Close( 1 )} ),
Dispatch( {}, "Linear Fit", Outline Box( 3 ), {Close( 1 )} )
)
);