I am working on the Titanic Kaggle challenge and one thing that I want to do with it is to modify the data under some variables so that it's easier to model.
For example, under the Cabin column, instead of the cabin ID "C85, C123, E46,...etc.", I want to change it within Enterprise Miner so that it is the beginning letter of the cabin ID. Thus, the data should be transformed to be "C, C, E, ...etc.".
In addition, under the name column, I want to split the variable column into 2 variable columns where it's last name and the prefix + first name, e.g. change "last name, prefix first name" to one column that is "last name" and a second column that is "prefix first name."
Attached is the csv of the training data set for reference. Thank you for your support.
Once you have the data in a SAS data set, the transformations are easy. I could be wrong, but I believe that Enterprise Miner would use the same tools:
data want;
set have;
length short_cabin $ 1;
short_cabin = cabin;
lastname = scan(name, 1, ',');
firstname_prefix = scan(name, 2, ',');
run;
Once you have the data in a SAS data set, the transformations are easy. I could be wrong, but I believe that Enterprise Miner would use the same tools:
data want;
set have;
length short_cabin $ 1;
short_cabin = cabin;
lastname = scan(name, 1, ',');
firstname_prefix = scan(name, 2, ',');
run;
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
Use this tutorial as a handy guide to weigh the pros and cons of these commonly used machine learning algorithms.
Find more tutorials on the SAS Users YouTube channel.