Hi there
Sorry for this very basic question. I want to display mean number of observation per year in my results window. My data are set up as follows. In this dummy example, the answer would be "8.333333"
Any advice much appreciated. Thanks.
Sorry for this very basic question. I want to display mean number of observation per year in my results window. My data are set up as follows. In this dummy example, the answer would be "8.333333"
Code:
clear input float(year count) 2010 1 2010 1 2010 1 2010 1 2010 1 2011 1 2011 1 2011 1 2011 1 2011 1 2011 1 2011 1 2011 1 2012 1 2012 1 2012 1 2012 1 2012 1 2012 1 2013 1 2013 1 2013 1 2013 1 2013 1 2014 1 2014 1 2014 1 2014 1 2014 1 2014 1 2014 1 2014 1 2014 1 2014 1 2015 1 2015 1 2015 1 2015 1 2015 1 2015 1 2015 1 2015 1 2015 1 2015 1 2015 1 2015 1 2015 1 2015 1 2015 1 2015 1 end
Any advice much appreciated. Thanks.
Comment