大家好,
希望有人能帮助我解决一个关于脚本的相当基本的问题。 我有一个数据表,我从中运行了多个模型(用于各种输出)并将我满意的模型保存为脚本。 我现在想将这些模型合并到一个模型报告中,并包含一个显示所有输出的探查器(以启用多变量优化)。至关重要的是,我想保留每个模型报告中的模型性能信息,因此不能只使用保存列/预测公式/探查器。
如果我只是将模型脚本复制并粘贴在一起,我总是会遇到语法错误(当我运行新脚本时通常是意外拟合模型或类似错误)
我的 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);