这步功能看起来很有用:)

我注意到的一些事情:
1) 不要使用字符串值作为 yi - 尽管它似乎是“允许的”:

2) 说明 - 附加组件:
返回与满足 xi 小于或等于 x 参数的最大 xi 对应的 yi 参数
- 但只有:如果还有另一个 xi 大于 x 。
3) yi 值不能为空。
Names Default to Here(1);
dt = Open( "$SAMPLE_DATA/Big Class.jmp" );
dt << New Column( "binning1",Character, "Nominal", Formula( Step( :weight, 0, "low", 90, "mid", 140, "high", 1000, "max" ) ));
dt << New Column( "binning2",Numeric,"Nominal", Format( "Best", 9 ),Formula( Step( :weight, 0, 0, 90, 1, 140, 2 ) ));
dt << New Column( "binning3",Numeric, "Nominal", Format( "Best", 9 ),Formula( Step( :weight, 0, 0, 90, 1, 140, 2, 1000, . ) ));
dt << New Column( "binning_final", Numeric, "Nominal", Format( "Best", 9 ), Formula( Step( :weight, 0, 0, 90, 1, 140, 2, 1000, -1 ) ));