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