cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Graph Builder Toolbar streamlines interactive graphing. Creates shortcuts on Report and GraphBuilder Helpers toolbars. Download and install the extension.
  • JMP will suspend normal business operations for our Rest and Recharge Day on Friday, October 2, 2026.
    Regular business hours will resume on Monday, October 5, 2026.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
JinwookKim
Level I

Create a list of candidates from the partition results for mutable variables

I 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));
4 REPLIES 4
jthi
Super User

Re: Create a list of candidates from the partition results for mutable variables

Depending 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;
-Jarmo
txnelson
Super User

Re: Create a list of candidates from the partition results for mutable variables

List = dt << get column name(numeric);

is incorrect.  It needs to be

List = dt << get column names(numeric);
Jim
mmarchandFSLR
Level VI

Re: Create a list of candidates from the partition results for mutable variables

 .

JinwookKim
Level I

Re: Create a list of candidates from the partition results for mutable variables

It works greatly. Thanks a lot...! 

Recommended Articles