Hi,
I have a variable names idgroup
I want to replace the second observation by 1:
. replace idgroup[_n]=1 if _n==2
I get the error : "weights not allowed"
What is wrong with my code?
Thanks,
Navid
I have a variable names idgroup
| idgroup |
| 1 |
| 2 |
| 3 |
. replace idgroup[_n]=1 if _n==2
I get the error : "weights not allowed"
What is wrong with my code?
Thanks,
Navid

Comment