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
Saving J-StatisticHello everyone, I want to test the over-identification restrictions using 'estat overid'. I then wa…
"Cumul" based on last yearHello, I try to use the command "cumul", but based on the distribution of the last year. Here is a…
Convert double variables to floatHi, I am currently "translating" a piece of SAS code to Stata. Each step, I verify that both my Sta…
Quasi-Poisson regression commandI have been instructed to perform a quasi-Poisson regression analysis by my supervisor. I have gone …
xtheckman on stata 16Hi , I am using panel data and Xtheckman command. It keeps running endless Iterations for hours and …
Subscribe to:
Post Comments (Atom)
0 Response to Sort Means of Multiple Variables
Post a Comment