I am using the American commuinty survey dataset and I have two numerical variables COSTELEC "annual cost of electricity" and COSTFUEL "annual cost of heating". I would like to combine these two variables for every household in the set and use them as one variable, but I have no clue how to do that.
Also after combining them, I would like to estmiate the proportion of that new variable "energy costs" from another variable HHINCOME "Annual income".
I would appreciate the help I am a beginner and I have this stata assignement for my final and I am struggling to get it done.
Thank you
Related Posts with Combining two numerical variables.
Running regressions with an index I createdHi all, I am running a regression on the impact of freedom in a country on socioeconomic developmen…
gender changes in the panel surveyDear Statalist Community, due to my thesis I am allowed to work with stata. My dataset comes from a…
Generating new columns for each unique value of a categorical variableDear All, The issue I am trying to resolve here is as follows- I have a dataset where customers pur…
Transfering Kendal correlations into WordDear all contributors, I am calculating Kendal correlations of more than 100 variable couples and w…
Consistent estimatorDear all, Suppose we have a lot of observations. Suppose the following model : y = b*x + e , where …
Subscribe to:
Post Comments (Atom)
0 Response to Combining two numerical variables.
Post a Comment