Re:通过脚本删除效果摘要中的效果效果摘要表只是一个标准的JMP表格框()。 因此,它将遵守Table Box()对象支持的任何消息。 其中一条消息是
<<删除行()
以下是从脚本索引中获取的示例
帮助==>脚本索引
这说明删除row()消息与表格框()的使用
Names Default To Here( 1 );
New Window( "test",
tb = Table Box(
String Col Box( "string col", {"a", "b"} ),
Number Col Box( "number col", {1, 2} )
)
);
tb << delete row( 1 );
确定如何指向您感兴趣的表格框(),请参阅“脚本指南”中有关显示树的部分
帮助==>图书==>脚本指南
Re:通过脚本删除效果摘要中的效果即使我使用Table Box,我也无法删除行。日志窗口返回“无法删除行(i)”。还有其他办法吗?
通常效果摘要允许我们在表格框中选择特定效果,然后单击左上角的“删除”按钮删除某些效果。可以通过脚本执行此操作吗?如何选择表格框中的行并激活“删除”按钮以通过脚本删除所选行?
Re:通过脚本删除效果摘要中的效果我能够复制你的发现.....它不会让你删除该特定表中的一行。 但是,有一个工作。 看看下面的脚本。 事实证明,您可以删除整个表,因此脚本的作用是制作表的副本,然后您可以删除要删除的行。 然后,您可以将表复制回报表,最后删除旧表。
names default to here(1);
dt=open("$SAMPLE_DATA/big class.jmp");
ft = dt << Fit Model(
Y( :height ),
Effects( :age, :sex, :sex * :age ),
Personality( "Standard Least Squares" ),
Emphasis( "Effect Leverage" ),
Run(
:height << {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 )}
)
);
ob=vlist box();
ob<<APPEND></APPEND>Re:通过脚本删除效果摘要中的效果在“效果摘要”中,“删除”只是一个带有下划线样式的按钮框。因此,您也可以非交互式模拟按下按钮:
names default to here(1);
dt = open("$SAMPLE_DATA/big class.jmp");
ft = dt <<
Fit Model(
Y( :weight ),
Effects( :age, :sex, :height ),
Personality( "Standard Least Squares" ),
Emphasis( "Effect Leverage" ),
Run(
:weight << {Summary of Fit( 1 ), Analysis of Variance( 1 ),
Parameter Estimates( 1 ), 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 )}
)
);
Wait(3);
// Get the Fit Model report
ftRep = Report(ft);
// Select the rows in the report that have a p value bigger than 0,05
pVals = Matrix(ftRep[NumberColBox(2)] << get);
bigPvals = Loc(pVals > 0.05);
ftRep[TableBox(1)] << setSelectedRows(bigPvals);
// Simulate a button press to remove these terms
ftRep[ButtonBox(1)] << click;
Re:通过脚本删除效果摘要中的效果非常感谢你!通过脚本删除效果摘要中的效果当Pvalues超过我通过脚本设置的值时,如何删除效果摘要中的某些效果?