- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
JSL for using a column group in a formula
Hi;
New to JMP / JSL. I'm trying to add a formula column at the end of a set of data that calculates the STD DEV of the column data. The header data will be variable, so I need a generic assignment of column numbers.
My script is obviously wrong, otherwise I wouldn't be here but this is what I was trying;
dt << Group Columns ("Weeks", Column (2), 26);
dt << New Column ("STDEV", Characteristic, Formula (std dev("Weeks")));
Any guidance is appreciated! Thanks!
-Phil
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: JSL for using a column group in a formula
Created:
Oct 22, 2018 01:27 PM
| Last Modified: Oct 22, 2018 11:14 AM
(4292 views)
| Posted in reply to message from PNash 10-22-2018
Nevemind, figured it out!
dt << Group Columns ("Weeks", Column (2), 26);
colgrp = dt << get column group("Weeks");
dt << New Column ("STDEV", Numeric, Formula (std dev(colgrp)));
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Get Direct Link
- Report Inappropriate Content
Re: JSL for using a column group in a formula
Created:
Oct 22, 2018 01:27 PM
| Last Modified: Oct 22, 2018 11:14 AM
(4293 views)
| Posted in reply to message from PNash 10-22-2018
Nevemind, figured it out!
dt << Group Columns ("Weeks", Column (2), 26);
colgrp = dt << get column group("Weeks");
dt << New Column ("STDEV", Numeric, Formula (std dev(colgrp)));