Hi Everybody! I'm trying to aggregate a variable, let's call it Image, between two specific dates for each company Id. So Imagine I have a database with three columns: Company ID, Date, Image. I want to calculate that for each company ID what is the value of image variable (sum or average) between for instance January 17th of 2008 and February 16th of 2008. It's a panel data. I have multiple observations for each ID daily from 2007 to 2015. I want to aggregate each variable's value between specific dates for each company ID. If that helps, I hope I'm clear enough, for company 83976, I want to have a new variable summing the values between 1/1/2007 and 1/30/2007 for image. I read it should work with proc SQL but I didn't find a good example. Company Date Image 83976 1/1/2007 12 83976 1/2/2007 9 83976 1/3/2007 3 Thank you!
... View more