Hiya,

for my project i have daily stock market data (returns and volatility) and daily weather (cloud cover, rain, temp).

How do i get stata to take a weekly average and then subtract it from the daily value in order to just see the excess value from the mean?

Also, does anyone know how to make a graph showing the returns for specific observations only. - By this i mean, cloud cover is measured one to 8. how do i make a graph against the returns for only the values that are 0 and 8, so ommitting certain observation values

thank you so much!!

if you could write the do file commands would be great