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.
  • Image to Table JMP extension imports single or batch images as data tables. Useful to extract curves from pictures or convert image data to curve data to use in analyses like Functional Data Explorer. Download and install the extension.

Discussions

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

Distribution using column list

hi,

I'm trying to create an continuous distribution using the column list store in "collist"

it show below error and the distribution did not come out.

 

mylifemyrule_1-1689670403008.png

Names Default To Here( 1 );
dt=Open( "C:\2023 Project\Try.jmp" );
//dt = Open( "$SAMPLE_DATA/Blood Pressure.jmp" );

ListofColumnNames2= dt << get column names();
show(ListofColumnNames2);
collist = {};
For( i=3, i <= N Items(ListofColumnNames2), i++,
	Insert Into( collist, ListofColumnNames2[i] );
);
show(collist);
dist = dt << Distribution(
	Stack( 1 ),
	Continuous Distribution(
		Column( evallist(collist) ),
		Horizontal Layout( 1 ),
		Vertical( 0 ),
		Process Capability( Use Column Property Specs, Process Capability Analysis )
	)
	);

 

1 ACCEPTED SOLUTION

Accepted Solutions
jthi
Super User

Re: Distribution using column list

You might have to move the column list outside the Continuous Distribution

Names Default To Here(1);

dt = Open( "$SAMPLE_DATA/Blood Pressure.jmp" );

ListofColumnNames2 = dt << get column names(Continuous, "String");

collist = ListofColumnNames2[3::N Items(ListofColumnNames2)];

dist = dt << Distribution(
	Stack(1),
	Column(Eval(collist)),
);

Scripting Index also provides example like this

jthi_0-1689670934786.png

 

-Jarmo

View solution in original post

2 REPLIES 2
jthi
Super User

Re: Distribution using column list

You might have to move the column list outside the Continuous Distribution

Names Default To Here(1);

dt = Open( "$SAMPLE_DATA/Blood Pressure.jmp" );

ListofColumnNames2 = dt << get column names(Continuous, "String");

collist = ListofColumnNames2[3::N Items(ListofColumnNames2)];

dist = dt << Distribution(
	Stack(1),
	Column(Eval(collist)),
);

Scripting Index also provides example like this

jthi_0-1689670934786.png

 

-Jarmo
mylifemyrule
Level II

Re: Distribution using column list

Thank @jthi. Its work. Appreciate your help :)

Recommended Articles