- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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.
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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
-Jarmo
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
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
-Jarmo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: Distribution using column list
Thank @jthi. Its work. Appreciate your help