I want to do proc means on variable, which I should create in my dataset based on some other existing variables. Can I manage to do this in one procedure?
My hopeless trial was
data example;
do i =1 to 100;
x=i**2;
output;
end;
run;
proc means data = example mean;
var y = x + i;
run;
but it doesn't work. Is there a way to do this? Thanks for any help.