根据分区结果为可变变量创建候选列表我不明白为什么这个脚本不起作用。
请帮助我解决我的问题。谢谢。
-------------------------------------------------- ------------------
dt = Open("$sample_data\Big Class.jmp");
List = dt << get column name(numeric);
Report = Expr(
rpt = New Window("Big Class - Decision Tree of sex",
dt << Partition(
Y(:sex),
X(Eval Expr(List)),
Informative Missing(1),
SendToReport(Dispatch({}, "Candidates", OutlineBox, {Close(0)}))
)
);
rpt["Partition for sex", "Candidates", Table Box(1)] << Make Into Data Table;
);
Eval(Eval Expr(Report));
自动化和脚本回复:根据分区结果为可变变量创建候选列表根据你最终想要做的事情,这里有一个修改脚本的选项
Names Default To Here(1);
dt = Open("$sample_data\Big Class.jmp");
numcols = dt << get column names(numeric, string);
rpt = New Window("Big Class - Decision Tree of sex",
dt << Partition(
Y(:sex),
X(Eval(numcols)),
Informative Missing(1),
SendToReport(Dispatch({}, "Candidates", OutlineBox, {Close(0)}))
)
);
dt_candidates = rpt["Partition for sex", "Candidates", Table Box(1)] << Make Into Data Table;
回复:根据分区结果为可变变量创建候选列表List = dt << get column name(numeric);
是不正确的。需要
List = dt << get column names(numeric);
回复:根据分区结果为可变变量创建候选列表 .
回复:根据分区结果为可变变量创建候选列表效果非常好。非常感谢...!