Fiche Data Prep

Action Principale : bartScore

Code de préparation

Script en attente de validation
Copié !
1DATA 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;
2DATA 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;
3PROC 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};
7RUN;
8QUIT;
Actions utilisant ce script
  • bart bartScore En cours
  • Aucune autre action n'utilise ce script exact.