I have a data set on gross income and I'm trying to display the percent of total gross income (in a pie chart) that comes from 1. wage income 2. interest/dividend income and then 3. other income (Business and farm income, ss income, etc.).
How do I create a new variable that is the sum of all of the 'other' variables. Basically, I want a pie Chart that Shows percent of total gross income that Comes from
1. wages
2. interest and dividend
3. other
Thanks!
Related Posts with Create new variable based on other variables
Creating lags of many variables all at onceHow can I efficiently create new variables for lags of many variables in my dataset? Say for example…
Problem with loop matching treatment to control based on logoddsHi all, I am in need of some help with a loop that I am trying to run. I am implementing propensity…
LCA - mix of categorical and continuous indicatorsDear Stata Users. Is there a way in Stata to include a mix of categorical and continuous indicators …
Weird dfbetas after regress with case specific dummiesHello Statalisters, I noticed some strange behaviour of dfbeta after regress: when I want to correc…
esttab? Hi, I have 4 groups of individuals and I want to analyze if there are differences for a long list o…
Subscribe to:
Post Comments (Atom)
0 Response to Create new variable based on other variables
Post a Comment