I am using the replace command in a do file. When I run the do file, it looks like this (yes, I study diarrhea):
. replace cause_diar_2 = 1 in 20
(1 real change made)
. replace cause_diar_2 = 0 in 125
(0 real changes made)
. replace cause_diar_2 = 0 in 134
(0 real changes made)
. replace cause_diar_2 = 1 in 149
(1 real change made)
No error messages appear when I run the do file. Then, when I repeat the commands for the replacements that for some reason were not made, the changes are made (for example, the two in the middle above):
. replace cause_diar_2 = 0 in 125
(1 real change made)
. replace cause_diar_2 = 0 in 134
(1 real change made)
This must be stupidly simple to fix, but I am relatively new to stata. Help?
Thanks! Laura
. replace cause_diar_2 = 1 in 20
(1 real change made)
. replace cause_diar_2 = 0 in 125
(0 real changes made)
. replace cause_diar_2 = 0 in 134
(0 real changes made)
. replace cause_diar_2 = 1 in 149
(1 real change made)
No error messages appear when I run the do file. Then, when I repeat the commands for the replacements that for some reason were not made, the changes are made (for example, the two in the middle above):
. replace cause_diar_2 = 0 in 125
(1 real change made)
. replace cause_diar_2 = 0 in 134
(1 real change made)
This must be stupidly simple to fix, but I am relatively new to stata. Help?
Thanks! Laura