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
margins, predictnl and nlcomDear All, I estimate a logit model and then I want to compute the (average) marginal effects of the…
Nice export STATA output to excel or wordDear Madam/Sir, I used the following command using posts here, but tables are broken both in MS wor…
Interpretation of metatrimHi all, I'm a newbie to Stata and hope someone can help explain the metatrim command. My understan…
xtreg fixed effect and estimate using wlsDear Statalist, Following is the code for firm and year fixed effect using xtreg [CODE] xtset comp…
Dealing with Missing ValuesGreetings Everyone! Hopefully, you will be doing well. I have a problem with missing values. I have…
Subscribe to:
Post Comments (Atom)
0 Response to Create new variable based on other variables
Post a Comment