Due to recent updates, all users are required to create an Altair One account to login to the RapidMiner community. Click the Register button to create your account using the same email that you have previously used to login to the RapidMiner community. This will ensure that any previously created content will be synced to your Altair One account. Once you login, you will be asked to provide a username that identifies you to other Community users. Email us at Community with questions.
Fitting 'by groups'
stereotaxon
Member Posts: 10 Contributor II
Hi,
I have grouped data and I'd like to fit a model to each group's data. To do this in SAS, I use a BY <grouping var> statement and in SPSS it's a split file statement. Is there a way to do this in RapidMiner? As I'm doing it now, I'm writing out each subgroups data which is extremely slow and difficult to maintain.
Thanks for your help,
Mike
I have grouped data and I'd like to fit a model to each group's data. To do this in SAS, I use a BY <grouping var> statement and in SPSS it's a split file statement. Is there a way to do this in RapidMiner? As I'm doing it now, I'm writing out each subgroups data which is extremely slow and difficult to maintain.
Thanks for your help,
Mike
0
Answers
yes, this is possible by using the ExampleFilter operator. Let's say, you have three groups "A", "B", and "C" which are specified in the attribute (column) "groups". You can then use the filter operator together with the ParameterIteration operator (but then you would have to define the groups manually). If you access the latest CVS version, this is possible much more comfortable by using the new ValueSubgroupIterator operator like in the following example: The first operator chain is just used for data creation. Please note that you have to access the latest CVS version for this which is described here: http://rapid-i.com/content/view/25/48/
Or you can simply wait since we will make a new release probably next week.
Cheers,
Ingo
-Mike