Action Principale : annCode
| 1 | PROC CAS; |
| 2 | LOADACTIONSET 'dataStep'; |
| 3 | dataStep.runCode / code='data mycas.hmeq; set sampsio.hmeq; run;'; |
| 4 | |
| 5 | LOADACTIONSET 'dataPreprocess'; |
| 6 | impute.impute / |
| 7 | TABLE={name='hmeq'}, |
| 8 | method='MEAN', |
| 9 | inputs={{name='DEBTINC'}, {name='NINQ'}}, |
| 10 | copyAllVars=true, |
| 11 | casOut={name='hmeq_imputed', replace=true}; |
| 12 | |
| 13 | LOADACTIONSET 'neuralNet'; |
| 14 | annTrain / |
| 15 | TABLE={name='hmeq_imputed'}, |
| 16 | inputs={'LOAN', 'MORTDUE', 'VALUE', 'YOJ', 'DEROG', 'DELINQ', 'CLAGE', 'NINQ', 'CLNO', 'DEBTINC'}, |
| 17 | target='BAD', |
| 18 | nominals={'BAD', 'REASON', 'JOB'}, |
| 19 | modelTable={name='nn_model'}; |
| 20 | QUIT; |