I want to determine the mean, standard deviation etc. for the top 50 countries by GDP in a 100 country dataset. I have sorted in descending order using gsort command but unable to figure how to find mean for the top 50.
I can always use the crude way of visually looking at the 51st country and then using the "if {var} > {value} but I am sure there must something more elegant in STATA
I can always use the crude way of visually looking at the 51st country and then using the "if {var} > {value} but I am sure there must something more elegant in STATA

Comment