Subscribe Bookmark RSS Feed

How to scale each column?

marcokunzelmann

Community Trekker

Joined:

Jun 9, 2015

Hello everyone,

I have a simple question, I want to scale each column in a data table. So that each value of the same column is divided by the standard deviation of the column.

Of course I can use the formula editor therefore if I have only a few columns, unfortunately I have over 1000 columns. So it would be great to have a function/tool in JMP which allows me to do that with all columns iterative. So that all values in column 2 are divided by the standard deviation of column 2 and so on.

I really searched for over 2 hours by myself to solve that problem, which can be solved in excel so easy. So I'm pretty sure there have to be an easy solution.

It would be great if someone can help me!

Greetings!

1 ACCEPTED SOLUTION

Accepted Solutions
Solution

You can use Cols->Standardize Attributes... to do this.

First, use Cols->Add Multiple Columns... to add all the columns you'll need to hold your transformations.

Then, select all the newly added columns and choose Cols->Standardize Attributes....

In the Standardize Attributes dialog choose Column Properties->Formula in the Standardize Properties section and check the Substitute Column Reference option.

8949_Pasted_Image_6_16_15__10_44_AM.png

Then click the Edit Formula button. You'll be creating the formula for the first column in the selected columns and JMP will substitute any column references you use in the formula based on the relative position of the columns in the data table.

-Jeff

-Jeff
5 REPLIES
Solution

You can use Cols->Standardize Attributes... to do this.

First, use Cols->Add Multiple Columns... to add all the columns you'll need to hold your transformations.

Then, select all the newly added columns and choose Cols->Standardize Attributes....

In the Standardize Attributes dialog choose Column Properties->Formula in the Standardize Properties section and check the Substitute Column Reference option.

8949_Pasted_Image_6_16_15__10_44_AM.png

Then click the Edit Formula button. You'll be creating the formula for the first column in the selected columns and JMP will substitute any column references you use in the formula based on the relative position of the columns in the data table.

-Jeff

-Jeff
Craige_Hales

Staff

Joined:

Mar 21, 2013

thanks Jeff. A JSL-free solution!

Craige
KarenC

Super User

Joined:

Feb 10, 2013

Very Cool and easy. I have achieved similar results by "cheating", that is opening graph builder, transforming my columns and then adding the transformations into my tables.  The advantage to that "cheat" is that you get column names. But still no scripting involved.


However, the "Substitute Column Reference" option is a gem. Just "fixed" 6 column formulas by "fixing" one!

nac

Occasional Contributor

Joined:

Feb 17, 2017

Hi,

I also have similar problem. I want to divide all of the first 10 columns to Column 11 and multiply them with 100

Column 1 / Column 11*100, 

Column 2 / Column 11*100

Column 3 / Column 11*100....

.

.

.

Column 10

 

Is there a simple way of doing this?

 

 

marcokunzelmann

Community Trekker

Joined:

Jun 9, 2015

A bit late from my side, but thanks for the answer!