"variable at_exp_share11 already defined" is always displayed when I run the command. But I can confirm that I have not created this variable before.
The specific procedures are as follows
. foreach lev in 9 1 {
2. bys pcode_st`lev': egen at_exp_share11=total(exp_share11)
3. gen exp_share_aggup=exp_share11/at_exp_share11
4. }
variable at_exp_share11 already defined
r(110);
Thank you in advance. I am happy to provide more information.
Zhang Ningning
Related Posts with "variable at_exp_share11 already defined" is always displayed when I run the command.
Count unique observations by grouping vars if conditions is metHi I want to count the number of unique ID's per year and group. I have managed that with the follo…
Lag generation with multiple dates Code: * Example generated by -dataex-. For more info, type help dataex clear input double(date id p…
Problem to create loopGoodmorning I have a panel data, with severall variables for each countriesin every years. However I…
How to draw 1:2 matched dataset then double the cases?Hello Statalists, Part of my data is as follows: Code: * Example generated by -dataex-. For more i…
Is there any reason to test Difference-in-Differences if paralell trend is weakly unsatisfied?Normally when testing the parallel trend assumption in the Difference-in-Differences setting, we nor…
Subscribe to:
Post Comments (Atom)
0 Response to "variable at_exp_share11 already defined" is always displayed when I run the command.
Post a Comment