Hi all. Hope someone might be able to help!
I have an excel data set that loads nicely into STATA. I then generate a number of variables, mostly binary, in order to perform ttest and teffects psmatch commands.
When I tab the variables after generating them, they all look correct, with observation grouped into 0 and 1.
The first series of commands run smoothly, until I begin to get errors, after about 5-6 commands.
It seems the dataset acquires rogue observations that are neither in group 0 or 1 of the binary variable generated.
Instead they live in a (3rd) group by themselves, listed as something very small 0.00etc...
I can manually look through Data Editor to remove the erroneous observation. But it is time consuming!!
Is there a better fix? What is the root of the problem?
Many thanks,
Emmanuel
I have an excel data set that loads nicely into STATA. I then generate a number of variables, mostly binary, in order to perform ttest and teffects psmatch commands.
When I tab the variables after generating them, they all look correct, with observation grouped into 0 and 1.
The first series of commands run smoothly, until I begin to get errors, after about 5-6 commands.
It seems the dataset acquires rogue observations that are neither in group 0 or 1 of the binary variable generated.
Instead they live in a (3rd) group by themselves, listed as something very small 0.00etc...
I can manually look through Data Editor to remove the erroneous observation. But it is time consuming!!
Is there a better fix? What is the root of the problem?
Many thanks,
Emmanuel
Comment