Hello, I am working with stock market price data. My columns are date, company_number (co_num), and price (prc). I need to compute the standard deviation of price for each company across a one, two, three, four, and five year range. I can do the single year using the following in Base SAS 9.4: Proc sql; Create table new as Select co_num, year(date) as year, std(prc) as std_1_year From old Group by co_num, year(date); Quit; How do I do the additional years? Thank you for the assistance!
... View more