分布图脚本(多列和按行名称分组)大家好,
我想为下面的分发创建一个脚本。 我应该在脚本中的何处进行编辑以进行“按”分组。
如果我只想显示 lot_id=lot01 如何在脚本中过滤它
.
感谢是否有人可以帮助我。
我从这个脚本https://community.jmp.com/t5/Discussions/Script-multiple-columns-grouped-in-distribution-plot/mp/162798#M40093
基础数据分析与建模回复:分布图脚本(多列和按行名称分组)names default to here(1);
dt=open("$SAMPLE_DATA/semiconductor capability.jmp");
colList = dt << get column names(continuous,string);
// For this illustration I want to use just the NPNn columns
for(i=nitems(colList), i>=1,i--,
If(substr(colList[i],1,3)!="NPN", remove from(colList,i,1))
);
// build the JSL string
theExpr =
"Dis = Distribution(
Continuous Distribution( Column( :" || colList[1] || " ),
Process Capability( Use Column Property Specs ) )";
For( i = 2, i <= N Items( colList ), i++,
theExpr = theExpr || "," || "Continuous Distribution( Column( :" || colList[i] ||
" ), Process Capability( Use Column Property Specs ) )"
);
theExpr=theExpr||");";
// run the built JSL string
eval(parse(theexpr));
// Standardize the settings
disr = Dis << report;
disr[colList[1]]["Quantiles"]<<CLOSE all="" like="" this=""></CLOSE>这里的脚本
回复:分布图脚本(多列和按行名称分组)您所要做的就是按照您的意愿运行分发平台,然后转到红色小三角并选择
“按组脚本保存”

它将为您提供包含 By 元素的脚本。
Distribution(
Stack( 1 ),
Continuous Distribution(
Column( :NPN1 ),
Horizontal Layout( 1 ),
Vertical( 0 ),
Process Capability( Use Column Property Specs )
),
By( :lot_id )
);
回复:分布图脚本(多列和按行名称分组)嗨吉姆,
非常感谢您的及时回复。 我想生成一个脚本,我可以将其重用于其他数据类型(不同的列名称)。 有什么方法可以使用脚本自动执行该操作吗?
谢谢,
玛雅人
回复:分布图脚本(多列和按行名称分组)您在之前的讨论中显示的脚本是动态生成分布的示例,通过在其指向的数据表中查找列名,然后运行这些分布。假设您熟悉编程,您应该能够遵循脚本。使用的任何函数都可以在脚本索引中查找,其中显示了定义和用法示例。
当您努力完善脚本时,社区将始终帮助您解决可能遇到的问题。