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.
Calculating the sample size needed for population proportion estimationDear users, I am new to Stata, and my question is: what is the correct procedure for calculating the…
Logit in 2 stepsHi, I want to model the following. In the internationalization of the firm, it can decide to enter…
"Random Effect model and FGLS" "Fixed effect model and FGLS"Hi Experts Hope you are doing well! Details of my dataset: Unbalanced Panel Dataset Data were tak…
a variable that indicates whether it is the first week of the month, second week, etc...Dear all, I have a date variable in my dataset in the following format: 27feb2015 20feb2015 13feb2…
Merge multiple csv filesDear all, I have a set of csv files named firm1, firm2, ..., firmn. Each file contains a specific d…
Subscribe to:
Post Comments (Atom)
0 Response to Combining two numerical variables.
Post a Comment