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.
Why probit works, but multinomial probit doesn't?In short, I estimate 4 probit regressions, examining the effects of a variable X on the probability …
operating a code only on the "not distinct" observationsHi everyone, I would like to use an if statement with the unique command, in order to operate a code…
Marginal effect of a dummy variable in a logit modelHi, I am using a logit model whose explanatory variables are dummies. Is it accurate to use Code: …
Why are marginal effects of instrumental variables statistically significant in ivprobit analysis?Hi, I am running an ivprobit model and have encountered an issue with the margin command in computin…
Measuring how a difference-in-difference indicator varies with respect to another independent variableHi, My first step of my analysis is estimating the difference-in-difference using a regression anal…
Subscribe to:
Post Comments (Atom)
0 Response to Combining two numerical variables.
Post a Comment