亲爱的社区成员们,
我是一名教授,正在(逐步)将新的 JMP Pro 内容融入到我的化学课程中。其中一个主题是 Tukey 的单自由度非加性检验,用于检验非重复因子设计中的非加性。请问 JMP Pro 是否有其他方法可以运行此检验(我在网上没有找到相关信息)。
谢谢
丽塔
我不认为有任何内置的方法来获得这个测试,但你可以使用一些 JSL 来构建它。 步骤是: 拟合您的 2 向方差分析模型。 保存预测值。 广场他们。 现在再次拟合 2-way 模型,但将平方值添加为一列。 该测试是您的非附加测试。 我已经包含了一个示例数据集和一个执行此操作的脚本。 这是我使用的脚本,该脚本是针对此示例进行硬编码的。
Names Default to Here(1);
dt = Current Data Table();
// Launch platform: Fit Least Squares
dt = Current Data Table();
Mod1 = dt << Fit Model(
Y( :Impurity ),
Effects( :Temp, :Pressure ),
Personality( "Standard Least Squares" ),
Emphasis( "Effect Leverage" ),
Run(
:Impurity << {Summary of Fit( 1 ), Analysis of Variance( 1 ),
Parameter Estimates( 1 ), Lack of Fit( 0 ), Scaled Estimates( 0 ),
Plot Actual by Predicted( 1 ), Plot Regression( 0 ),
Plot Residual by Predicted( 1 ), Plot Studentized Residuals( 0 ),
Plot Effect Leverage( 1 ), Plot Residual by Normal Quantiles( 0 ),
Box Cox Y Transformation( 0 )}
), Invisible
);
mod1 << Prediction Formula;
mod1 << Close Window();
// New formula column: Pred Formula Impurity^2
dt << New Formula Column(
Operation( Category( "Transform" ), "Square" ),
Columns( :Pred Formula Impurity )
);
// Change column name: Pred Formula Impurity^2 → Nonadd
dt:"Pred Formula Impurity^2"n << Set Name( "Non-Additive Test" );
// Launch platform: Fit Least Squares
dt << Fit Model(
Y( :Impurity ),
Effects( :Temp, :Pressure, :"Non-Additive Test"n ),
Personality( "Standard Least Squares" ),
Emphasis( "Effect Leverage" ),
Run(
:Impurity << {Summary of Fit( 0 ), Analysis of Variance( 0 ),
Parameter Estimates( 1 ), Sequential Tests( 1 ), Lack of Fit( 0 ), Scaled Estimates( 0 ),
Effect Tests( 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 )}
)
);