Hey, I have a problem.
My Dataset contains data about executive compensation, a few variables are "GesVG" "ErbrachteMannmonate" among other variables. Now I want to generate a new variable "dGesVG" which divides the variable "GesVG" by "ErbrachteMannmonate" and multiplies this with "12" (months). But I don't know how to generate it. Here is my suggestion:
gen dGesVG == GesVG/ErbrachteMannmonate*12 when I execute this, stata always tells me "invalid name". I really don't know how to solve this problem.
Thanks for your help
My Dataset contains data about executive compensation, a few variables are "GesVG" "ErbrachteMannmonate" among other variables. Now I want to generate a new variable "dGesVG" which divides the variable "GesVG" by "ErbrachteMannmonate" and multiplies this with "12" (months). But I don't know how to generate it. Here is my suggestion:
gen dGesVG == GesVG/ErbrachteMannmonate*12 when I execute this, stata always tells me "invalid name". I really don't know how to solve this problem.
Thanks for your help
Comment