Output developed model to SQL code?

You can transform several models into PMML and then into SQL. Decision trees can also be transformed into rules that you can then convert into some if then else … rules

For SAS you could try to use PROC SQL and the output code.

We discussed which models use PMML here:

I think it could be possible to use PMML in SAS (but you would have to check if it works, PROC PSCORE); keep in mind that you will have to include all the data transformations also. From my experience PMML is compatible in theory but once you start implementing real models you have to put in some effort.

1 Like