I need to get a dataset of a uniform grid 20x20 using info from SASHELP.CARS
so that x
and y
variables are obtained as follows:
do y = min(weight) to max(weight) by (min(weight)+max(weight))/20;
do x = min(horsepower) to max(horsepower) by (min(horsepower)+max(horsepower))/20;
output;
end;
end;
Weight
and HorsePower
are variables of SASHELP.CARS
. Furthermore the grid dataset has to have two more columns EnginSizeMean LengthMean
with the same value in each row that equals mean(EnginSize)
and mean(Length)
from SASHELP.CARS
(need all this to build dependency graph for regression model).