Create a list of candidates from the partition results for mutable variablesI can't understand why this script is not working.
Please helt me to correct my problem. Thanks.
--------------------------------------------------------------------
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));
Automation and ScriptingRe: Create a list of candidates from the partition results for mutable variablesDepending on what you are trying to do in the end, here is one option how you could modify the script
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;
Re: Create a list of candidates from the partition results for mutable variablesList = dt << get column name(numeric);
is incorrect. It needs to be
List = dt << get column names(numeric);
Re: Create a list of candidates from the partition results for mutable variables .
Re: Create a list of candidates from the partition results for mutable variablesIt works greatly. Thanks a lot...!