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
Data partitioning, subsequent plotting
I am new to RM, but am very excited by its possibilities! I've read through lots of forum messages, documentation, and videos, but cannot seem to figure out how to do a something that seems fairly simple. Any help would be wonderful!
Here is a an example of my data
I would like RM to partition the data according to the value in id2. In this simple example, it would split this data into two tables based on the values of 'a' and 'b' in id2:
Then I'd like to generate plots for these 2 tables (possibly separate plots, or just overlaid on the same plot) which graphs value on the Y-axis and period on the X-axis.
The original data will actually be partitioned into about 100 tables as a result, with varying numbers of records per table. Tables with more periods will have more records, for example.
I have surmounted getting RM to read the data from SQL 2008R2, but can't seem to figure out how to get it to split the data up into separate example sets.
Thanks for any help!!
Here is a an example of my data
id1 | id2 | period | value |
1 | a | 2 | .11 |
2 | a | 3 | .23 |
3 | a | 4 | .12 |
4 | b | 3 | .14 |
5 | b | 4 | .11 |
6 | b | 5 | .19 |
7 | b | 6 | .18 |
id1 | id2 | period | value |
1 | a | 2 | .11 |
2 | a | 3 | .23 |
3 | a | 4 | .12 |
id1 | id2 | period | value |
4 | b | 3 | .14 |
5 | b | 4 | .11 |
6 | b | 5 | .19 |
7 | b | 6 | .18 |
The original data will actually be partitioned into about 100 tables as a result, with varying numbers of records per table. Tables with more periods will have more records, for example.
I have surmounted getting RM to read the data from SQL 2008R2, but can't seem to figure out how to get it to split the data up into separate example sets.
Thanks for any help!!
0
Answers
Option 1: Sequence of "Filter Examples"
You could use a sequence of operators "Filter Examples" to divide the data into subsets. The process below is an example for this on the Golf data set which is splitted according to Wind=true vs. Wind=false. You can then use for example the Reporting Extension or RapidAnalytics for creating the plots automatically.
Option 2: "Loop Values" plus Macro plus "Filter Examples"
This option is probably more suitable if you have many (i.e. more than two) different values. So after trying Option 1 for a couple of values you will probably end up with Option 2. As for Option 1, you could then use RapidAnalytics or the Reporting Extension for creating the desired plots automatically. Below is a process showing the basic loop:
Option 3: Reporting with RapidAnalytics
Another quite elegant option, especially if you want to visualize the data in the web or want to embed the results into other solutions, is the Enterprise Edition of RapidAnalytics which would allow to create interarctive reports showing exactly this kind of visualizations where users can select the group or all plots for all values can be created automatically.
Probably there are more options but those should be sufficient for the beginning ;D
Cheers,
Ingo