This Hands-on tutorial gives an introduction to creating Custom R Components in SAP Predictive Analysis.
SAP_PA_and_Custom_R_Components_Tutorial.zip
An expert-user creates new components which can leverage the thousands of algorithms from the R libraries. The casual-user can then easily and graphically embed these components into his own data flows. The creation of such components is slowly introduced with different examples that become more complex. The dataset is part of the download so that it is easier to follow the tutorial.
Eventually you will have created a new custom component with the following capabilities
•The end user can select at runtime what fields to pass into the component.
•A linear regression will be executed.
•A new charting type will be displayed that is not available with SAP Predictive Analysis.
•A trained model can be saved and applied on additional datasets.
To help focus on the programming concept, a simple linear regression is used within the component. Once you have understood this concept, you are ready to implement your own components with the thousands of R-functions at your disposal.
It is assumed the reader has a fair understanding of both SAP Predictive Analysis and R-scripting.
Have fun!
Andreas