변경 가능한 변수에 대한 파티션 결과에서 후보 목록을 만듭니다.이 스크립트가 왜 작동하지 않는지 이해할 수 없습니다.
제 문제를 바로잡도록 도와주세요. 감사합니다.
------------------------------------- ------------------
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));
자동화 및 스크립팅Re: 변경 가능한 변수에 대한 파티션 결과에서 후보 목록 만들기결국 무엇을 하려고 하는지에 따라 스크립트를 수정하는 방법 중 하나는 다음과 같습니다.
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: 변경 가능한 변수에 대한 파티션 결과에서 후보 목록 만들기List = dt << get column name(numeric);
틀렸습니다. 꼭 그래야 합니다.
List = dt << get column names(numeric);
Re: 변경 가능한 변수에 대한 파티션 결과에서 후보 목록 만들기 .
Re: 변경 가능한 변수에 대한 파티션 결과에서 후보 목록 만들기정말 잘 작동합니다. 정말 고맙습니다...!