"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.
Date problem. Again...Hi, I have read the documentation but I still do not understand why I can npt convert my string var…
Need some help on how to run multivariat tobit (mvtobit) in STATAI am engaging on a research and among the objectives measuring the status of rural household’s multi…
How to drop specific observations from dataset in Stata?Hello, I have a large dataset but I do not need all observations. The dataset contains data for eve…
How to randomly select control sample for the treatment sample multiple times and run regressions?Dear all, I am using Stata 14.0 to solve the questions about randomly selecting control sample for t…
How to generate 5 year-sum variables?Hello, I have been trying to generate a variable that takes the five-year sum (from t-4 to to year t…
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