大家好
我正在寻找 JSL 代码,以便使用“替换为变换”或“重新拟合为变换”自动获取“拟合模型”平台以 Box Cox 变换数据

感谢您的帮助
问候
雅各布
你好@Jakob
必须稍微改变脚本索引中的示例,但这应该可以工作(只需要“Refit”行来提示它运行):
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Tiretread.jmp" );
obj = dt << Fit Model(
Y( :ABRASION ),
Effects( :SILICA, :SILANE, :SULFUR ),
Personality( "Standard Least Squares" ),
Emphasis( "Minimal Report" ),
Run
);
Wait( 1 );
obj << Box Cox Y Transformation(
1,
Refit with Transform( 1 )
);
谢谢,
本
你好,本
感谢您的帮助,
我尝试使用该解决方案,但在使用手动方法和脚本版本时,我在导出的列中得到了不同的结果:
原因可能是我调用了第一个拟合模型窗口吗?
问候
雅各布
Names Default To Here( 1 );
dt = Open( "$SAMPLE_DATA/Tiretread.jmp" );
obj = dt << Fit Model(
Y( :ABRASION ),
Effects( :MODULUS, :ELONG, :HARDNESS, :SILICA, :SILANE, :SULFUR ),
Personality( "Standard Least Squares" ),
Emphasis( "Effect Screening" ),
Run(
<<{Summary of Fit( 0 ), Analysis of Variance( 0 ), Parameter Estimates( 0 ), Effect Tests( 0 ), Effect Details( 0 ),
Lack of Fit( 0 ), Expanded Estimates( 0 ), Sorted Estimates( 0 ), Plot Actual by Predicted( 0 ), Plot Regression( 0 ),
Plot Residual by Predicted( 0 ), Plot Studentized Residuals( 1 ), Plot Effect Leverage( 0 ),
Plot Residual by Normal Quantiles( 0 ), Show All Confidence Intervals( 0 ), Show Sqrt Variance Component( 1 ),
Box Cox Y Transformation( 1 ), Scaled Estimates( 0 ), Profiler( 0 )},
FDR( 0 ),
),
SendToReport(
Dispatch( {}, "Box-Cox Transformations", OutlineBox, {Close( 0 )} )
)
);
obj << Predicted Values;
obj << Std Error of Individual;
Wait( 1 );
obj << Box Cox Y Transformation(1,Refit with Transform(1));
Wait( 3 );
obj << Predicted Values;
obj << Std Error of Individual;
你好@Jakob ,手动运行时你使用的 lambda 值是什么?这可能就是区别所在。将“Refit with Transform (1)”中的值更改为你使用的 lambda 值。例如,
obj << Box Cox Y Transformation(1,Refit with Transform(0.95));