大家好....
我正在针对给定的 Y (分类)对多个分类 X 执行应急报告 - 我喜欢根据条件突出显示应急表单元格(来自输出报告):
例如突出显示如果
计数 >=12
细胞卡方> = 3.0
如果满足给定的条件,则希望用某种颜色突出显示单元格(字体颜色也可以,突出显示更好)
附加请求:是否有办法对行进行排序,例如根据单元格卡方的递减排序——但是由于行包含多个行元素(在我的设置中,我使用 3:计数、行 % 和单元格卡方),因此它们都需要成为排序的一部分
或者
有没有办法只过滤满足给定条件的行?(即这些可以是突出显示的行)
这是针对您的样本数据 (Aircraft Incidents.jmp) 的示例脚本
Contingency(
Y(:Fatal),
X(:Model),
Contingency Table(
Count(1, Format("Fixed Dec", 8, 0)),
Total %(0, Format("Fixed Dec", 8, 2)),
Col %(0, Format("Fixed Dec", 8, 2)),
Row %(1, Format("Fixed Dec", 8, 2)),
Expected(0, Format("Best", 8)),
Deviation(0, Format("Best", 8)),
Cell Chi Square(1, Format("Fixed Dec", 8, 4)),
Col cumulative(0, Format("Fixed Dec", 8, 0)),
Col cumulative %(0, Format("Fixed Dec", 8, 2)),
Row cumulative(0, Format("Fixed Dec", 8, 0)),
Row cumulative %(0, Format("Fixed Dec", 8, 2))
)
);
谢谢
阿尔图拜拉姆