Dear all,
I used the local command:
local happy q1_5
local sad q1_6
etc.. I have a lot more variables but to show my problem i resrtict to these 2.
Then I run the command:
gen status = `happy' * 1.7+ `sad' *3
STATA responds: invalid varname
r(198);
How Can i solve this problem? I am using STATA 13.1.
Many thanks
I used the local command:
local happy q1_5
local sad q1_6
etc.. I have a lot more variables but to show my problem i resrtict to these 2.
Then I run the command:
gen status = `happy' * 1.7+ `sad' *3
STATA responds: invalid varname
r(198);
How Can i solve this problem? I am using STATA 13.1.
Many thanks
Comment