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
Stochastic Frontier AnalysisI conducted Stochastic Frontier Analysis (SFA) using the command 'frontier' with the natural log of …
Milliseconds inconsistent when trying to find the earliest date/time across variablesDespite reviewing help datetime, searching Statalist, and reaching out to colleagues, I cannot solve…
TWFE: Different results between Stata and RHi, We are running two-way fixed effects on R and Stata using the same data, and they are giving di…
Showing values that exist in a value label but are not taken on by a variable in a table/tabulation?Hi All, I have a variable that represents the answers to the following question on a survey: Do you…
Descriptive Statistics by SegmentHi all, I have ratings data (ratings are 0-5) and I am trying to see what what % of users never rat…
Subscribe to:
Post Comments (Atom)
0 Response to Sort Means of Multiple Variables
Post a Comment