This must be a common way to 'sample' long column of data. For example, after sorting a column of 10,000 rows from min to max, generate a column with 100 averages (or sums) of every 100 rows.
In Excel, this can be done with a formula using the OFFSET function.
How can this be done in JMP? Thank you,
Tom
One simple way of doing this is to create a new column which has a unique value for rows 1-100, 101-200 etc. and then use the col mean() function to calculate separate means for each unique value created. So interactively here is how to do it
Floor((Row() - 1) / 100)
Col Mean(:<the column you want averaged>, :onehundreds)
Jim's steps are the way to go, and can be combined in a formula like this one, which avoids sort-dependency and also allows for table augmentation later:
Col Mean( :Vals, Floor( (Col Rank( :Vals ) - 1) / 100 ) )
Below, I've used this formula on integers 1::1000, randomly sorted. As shown, any number between 100*k+1 and 100*(k+1), inclusive, will have a group mean of k + 50.5. In practice, you may be sorting (ranking) by another column, say a timestamp, which is fine.
Cheers,
Brady