Action Principale : bartScore
| 1 | DATA mycas.cars_train; SET sashelp.cars; keep Make Model Type Origin DriveTrain MSRP Invoice EngineSize Cylinders Horsepower MPG_City MPG_Highway Weight Wheelbase LENGTH; RUN; |
| 2 | DATA mycas.cars_score; SET sashelp.cars; IF mod(_n_, 5) = 0; keep Make Model Type Origin DriveTrain MSRP Invoice EngineSize Cylinders Horsepower MPG_City MPG_Highway Weight Wheelbase LENGTH; RUN; |
| 3 | PROC CAS; |
| 4 | bart.bartGauss TABLE={name='cars_train'}, |
| 5 | model={depVars={{name='MSRP'}}, effects={{vars={'Type', 'Origin', 'DriveTrain', 'EngineSize', 'Cylinders', 'Horsepower', 'MPG_City', 'Weight'}}}}, |
| 6 | store={name='bart_model', replace=true}; |
| 7 | RUN; |
| 8 | QUIT; |