How long before the mead is ready for consumption?
This is wine from grapes with a little bit honey added. I am going to make mead(only use honey and water) in December.
You can also get rid of the random access (POINT=) and read the data only once, using arrays :
%let regSize=200;
data rCars(keep=grp engineSize horsepower) / view=rCars;
array es{®Size} _temporary_;
array hp{®Size} _temporary_;
set sashelp.cars;
st = 1 + mod(_n_-1, ®Size);
es{st} = engineSize;
hp{st} = horsePower;
if _n_ >= ®Size then do;
grp = 1 + _n_ - ®Size;
do i = st+1 to ®Size, 1 to st;
engineSize = es{i};
horsePower = hp{i};
output;
end;
end;
run;
proc reg data=rCars outest=eCars;
by grp;
model horsePower = enginesize;
run;
PG
Search using Google for "rolling window regression" in SAS:
http://www.sas-programming.com/2011/08/rolling-analysis-of-time-series.html.
http://www.nesug.org/proceedings/nesug07/sa/sa04.pdf
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.