cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
The Discovery Summit 2025 Call for Content is open! Submit an abstract today to present at our premier analytics conference.
Get the free JMP Student Edition for qualified students and instructors at degree granting institutions.
Choose Language Hide Translation Bar
View Original Published Thread

Distribution using column list

mylifemyrule
Level I

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 I


Re: Distribution using column list

Thank @jthi. Its work. Appreciate your help