大家好
我正在尋找 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));