cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Check out the JMP® Marketplace featured Capability Explorer add-in
Choose Language Hide Translation Bar
claude_bellavan
Level III

Any standardize function by subset

Hello,

I have three columns:  Population, Year and Type. I need to write the Z score value of the population in a new column. This standardization applies for each subset (Year + Type). Until now, I've used the distribution platform with «BY Year» and «BY Type» and saved the normalized data (red triangle menu, Save standardized value).

Since I have to update my table often, these values have to be refreshed dynamically (formula column). The problem here is that the Standardize function applies to all rows. Is there any function or special arguments that would standardize «on the fly» my population by subset?

Thanks,

Claude B.

1 ACCEPTED SOLUTION

Accepted Solutions
txnelson
Super User

Re: Any standardize function by subset

Claude,

I believe the answer to your question is to just create a new column and to use the following formula for the new column:

(:Population-Col Mean(:Population,:Year,:Type)) / Col Std Dev(:Population,:Year,:Type)

JIm

Jim

View solution in original post

3 REPLIES 3
txnelson
Super User

Re: Any standardize function by subset

Claude,

I believe the answer to your question is to just create a new column and to use the following formula for the new column:

(:Population-Col Mean(:Population,:Year,:Type)) / Col Std Dev(:Population,:Year,:Type)

JIm

Jim
claude_bellavan
Level III

Re: Any standardize function by subset

thank you very much Jim!

CB

andy_rogish
Level I

Re: Any standardize function by subset

Great and helpful response. It cut through the data and gave me what I needed, like a knife through hot butter!