The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Generate attribute
mario_sark
Member Posts: 13 Contributor I
in Help
Hello!
I am trying the add a column in order to check if an attribute is in between it's [Average -/+ one Standard Deviation] give it a value of "2" if it is less then Average- one Standard Deviation give it a value of "1" and finally if it is Greater then Average+Standard deviation give it a value of "3". Please check the example below.
Thank you,
Mario
I am trying the add a column in order to check if an attribute is in between it's [Average -/+ one Standard Deviation] give it a value of "2" if it is less then Average- one Standard Deviation give it a value of "1" and finally if it is Greater then Average+Standard deviation give it a value of "3". Please check the example below.
ID | X1 | Average of X1 | Standard deviation o fX1 | Average - STD | Average + STD | Generated Attribute |
1 | 1,000 | 2,417 | 1,017 | 1,400 | 3,434 | 1 |
2 | 2,000 | 2,417 | 1,017 | 1,400 | 3,434 | 2 |
3 | 2,000 | 2,417 | 1,017 | 1,400 | 3,434 | 2 |
4 | 3,500 | 2,417 | 1,017 | 1,400 | 3,434 | 3 |
5 | 4,000 | 2,417 | 1,017 | 1,400 | 3,434 | 3 |
6 | 2,000 | 2,417 | 1,017 | 1,400 | 3,434 | 1 |
Thank you,
Mario
0
Answers
You can use Generate attributes operator:
Here the process with a sample of your data :
Hope this helps,
Regards,
Lionel
but I forget to mention that i don't have the Average and the standard Deviation columns in my data, however I need to generate it, how can i do that ? (repeat the Average and Standard Deviation of X1 in a single columns like i shared the table above?)
Hope that you can help with this!
Thank you,
Mario
Ingo
You could then use Generate Attributes to recode this (e.g., round it, truncate it, take the absolute value, etc.) as desired.
Lindon Ventures
Data Science Consulting from Certified RapidMiner Experts