How many models are there under 'Luxury'? data cars_cat (keep = invoice inv_cat); set sashelp.cars; if invoice > 50000 then do; inv_cat = 'Luxury'; output cars_cat; end; run;
@sarankumar47807 жыл бұрын
data cars_cat (keep = Make Model MPG_City MPG_Highway Mileage_cat); set sashelp.cars; if MPG_City > 50 then Mil_cat = 'Very High'; else if MPG_City >= 20 and MPG_City 10 then Mileage_cat = 'Mid'; else if MPG_City