cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Try the Materials Informatics Toolkit, which is designed to easily handle SMILES data. This and other helpful add-ins are available in the JMP® Marketplace
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 IV

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...!