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
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.