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
SummarizeHello, I would like to summarize for each year in (total_region_share1978, total_region_share1979, …
Create a time-variant variable reflecting number of co-habitantsHello everyone, I am working with cohort data from a DSS. I have time-variant variants such as hous…
split variables and stringsDear All, I have this data set Code: * Example generated by -dataex-. For more info, type help data…
Creating subsets from appended databaseI am interested in creating subsets from the appended dataset using uniquely identified ID. An examp…
set scheme plotplainI am trying to set the scheme plotplain but STATA simply doesn't accept it. The error message says "…
Subscribe to:
Post Comments (Atom)
0 Response to Create new variable based on other variables
Post a Comment