Action Principale : assess
| 1 | /* Load HMEQ data into CAS */ |
| 2 | PROC CASUTIL; |
| 3 | load DATA=sampsio.hmeq outcaslib="casuser" casout="hmeq" replace; |
| 4 | QUIT; |
| 5 | |
| 6 | /* Run logistic regression and score the data */ |
| 7 | PROC CAS; |
| 8 | logistic.regress TABLE={name='hmeq'}, |
| 9 | class={'JOB', 'REASON'}, |
| 10 | model={depvar='BAD', effects={'LOAN', 'MORTDUE', 'VALUE', 'REASON', 'JOB', 'YOJ', 'DEROG', 'DELINQ', 'CLAGE', 'NINQ', 'CLNO', 'DEBTINC'}}, |
| 11 | OUTPUT={casout={name='hmeq_scored', replace=true}, into={'P_BAD1'='P_BAD1', 'P_BAD0'='P_BAD0'}}; |
| 12 | QUIT; |