I need jsl code that will save the probabilities of a given column distribution, by other columns.
I know how to do this un-scripted by taking a distribution of the column by the other columns and then under the red action button while holding control, and selecting Save Prob Scores. But I don't know how to script this.
I looked through other posts but didn't find an answer to how to script the above or doing a more direct calculation.
The only thing I could think of is to do multiple iterations over each "by": taking the subset, sorting those tables, error checking for a null table, calculate estimated quantiles using row number (not sure how to get this), and updating the original table with each. It seems like a lot of coding that maybe can be done with one line with the right function.
I'm sure someone has a beter idea.