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
Marker symbols and line patterns not showing in legend (combomarginsplot)Greetings, I'm running Stata 15.1 on OSX. I'm trying (struggling) to graph the predicted margins fr…
Multiple testing cox proportional hazards modelHi everyone, I'm running a cox proportional hazards model and testing multiple exposures. Instead o…
generating variables by using foreach commandI would like to rename variables "a_tick6 a_Cf1 a_Cf21 a_Cf2" into "tick6 Cf1 Cf21 Cf2" (Namely, I w…
Adding together variablesHello, I apologize in advance for my lack of knowledge concerning STATA as I am not familiar with it…
How to make STATA estimate different coefficients in the same regression model using different sample sizes?Hi All, I am running a regression model in STATA. The regression equation is as following: y=a+b1*…
Subscribe to:
Post Comments (Atom)
0 Response to Sort Means of Multiple Variables
Post a Comment