Hello,
I have time series data with 24 hours observations per day for an entire year . I need to transform the data into daily average. How would that be done.
Thanks
Why not just use PROC MEANS (aka SUMMARY)?
proc summary data=have ;
by date;
var nt ;
output out=want mean=nt_mean ;
run;
By "daily average", do you mean the average hourly measure for each day?
Yes, I meant the daily hourly average, also it can be considered an overall average for the day.
Why not just use PROC MEANS (aka SUMMARY)?
proc summary data=have ;
by date;
var nt ;
output out=want mean=nt_mean ;
run;
Works well. Thanks
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and save with the early bird rate—just $795!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.