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
Adding prefix to all observations in columnI have a column of identifiers which are e.g. : 58473J 50046Q 22631J I would like to add a prefix …
add one variable from one dataset to another one: error variable V2 does not uniquely identify observations in the master dataHell everyone, I have a dataset with V2 - country code (in the codebook each country has a code so…
Instrumental Variable method for binary dependant variable and binary instrument and binary endogenous variableHi, What model should I use? Currently, my model looks like this:ivregress 2sls depressed L.formal…
Individual time span reference per observationDear community, I have a dataset with about 3 million observations. Each observation has a time id,…
Make an exception within a loopI'm using version 15 of stata, and I'm wondering if it is possible to make an exception within a loo…
Subscribe to:
Post Comments (Atom)
0 Response to Create new variable based on other variables
Post a Comment