大家好,
希望有人能幫助我解決一個關於腳本的相當基本的問題。 我有一個數據表,我從中運行了多個模型(用於各種輸出)並將我滿意的模型保存為腳本。 我現在想將這些模型合併到一個模型報告中,並包含一個顯示所有輸出的探查器(以啟用多變量優化)。至關重要的是,我想保留每個模型報告中的模型性能信息,因此不能只使用保存列/預測公式/探查器。
如果我只是將模型腳本複制並粘貼在一起,我總是會收到語法錯誤(當我運行新腳本時通常是意外擬合模型或類似錯誤)
我的 JSL 腳本知識非常少,但這似乎應該是可行的,我可以得到正確的語法......
搜尋飛度集團在腳本索引中。這是一個例子:
dt = open("$SAMPLE_DATA/Big Class.jmp");
NewWindow("My Models",
fg = FitGroup(
Fit Model(
Y( :weight ),
Effects( :age, :sex, :height ),
Personality( "Standard Least Squares" ),
Emphasis( "Minimal Report" ),
Run(
:weight << {Summary of Fit( 1 ), Analysis of Variance( 1 ),
Parameter Estimates( 1 ), Scaled Estimates( 0 ),
Plot Actual by Predicted( 0 ), Plot Regression( 0 ),
Plot Residual by Predicted( 0 ), Plot Studentized Residuals( 0 ),
Plot Effect Leverage( 0 ), Plot Residual by Normal Quantiles( 0 ),
Box Cox Y Transformation( 0 )}
)
), // <--- note the comma
Fit Model(
Y( :weight ),
Effects( :age, :sex, :height, :age * :sex, :age * :height, :sex * :height ),
Personality( "Standard Least Squares" ),
Emphasis( "Minimal Report" ),
Run(
:weight << {Summary of Fit( 1 ), Analysis of Variance( 1 ),
Parameter Estimates( 1 ), Scaled Estimates( 0 ),
Plot Actual by Predicted( 0 ), Plot Regression( 0 ),
Plot Residual by Predicted( 0 ), Plot Studentized Residuals( 0 ),
Plot Effect Leverage( 0 ), Plot Residual by Normal Quantiles( 0 ),
Box Cox Y Transformation( 0 )}
)
);
)
);
// turn on the fit group profiler
fg << profiler(1);