Hi! I have what I hope is a pretty easy question to answer for the pros out there that I have been unable to figure out today. I am working with data on crop incomes and areas cultivated. I have generated a new variable for each crop which is basically income/area, let's call it xprof where x is the name of the crop. I am trying to find a way to generate the means each xprof variable and sort them. Basically, I am trying to generate a sorted list of which crops generate the most income based on the land they use.
I have been playing around with this a bit and can't seem to figure out a way to sort them since the normal sort functionality only sorts within a single variable. I am working with over 100 crops/xprof variables so an efficient way of doing this would be much appreciated. Thanks!
Related Posts with Sort Means of Multiple Variables
Difference between dates in monthI have dates %tdD_m_Y format and I want to create an indicator if they are exactly one month apart, …
Part-time Stata ADO programmer neededExperienced Stata ADO & mata programmer needed for part-time work on multiverse robustness analy…
How can I get difference between two dates in daysHello, I want to get the difference between these two dates (Fenddt - Rptdt) in days at a new variab…
Iterations in ARDL modelsDear Stata users, I am conducting a study using a panel of 48 countries over 1981-2018. The followi…
Bootstraping the CPS from IPUMS using bsampleHello, I'm working with the basic CPS as provided by IPUMS. I need to bootstrap the data to comput…
Subscribe to:
Post Comments (Atom)
0 Response to Sort Means of Multiple Variables
Post a Comment