I have this simplest dataset.
var new
0 1
Then I type
tab va
then it should throw me an error saying there is no such variable. But instead it gives me
var | Freq. Percent Cum.
------------+-----------------------------------
0 | 1 100.00 100.00
------------+-----------------------------------
Total | 1 100.00
as if I meant var when I wrote va.
It also does actual work. When I type
replace new =3 if va~=.
then it actually replaces new.
I am shocked. I created this mini example after realizing that my code is doing extremely strange job of not failing to do something that it has to fail.
This is an extremely dangerous thing. If I had believed that my regression output was correct while not realizing this strange behavior of Stata, my research would have been totally wrong, and if someone else finds it out, people will think I did it intentionally and I will be regarded as fraud and my career will be over.
Why does this happen? And how can I 100% make sure Stata doesn't behave this way?
Related Posts with I am shocked that Stata may not understand variable names literally
Key Variables - Different Lengths: Need to Correct or RecreateGood evening - I am appending / pooling recent surveys from a number of countries. I realized that t…
RDD GeographicHello! I'd like to work with RDD geographic, but i don't find nothing in stata' help about the prog…
Problems with country sector fixed effectsDear all, I have a problem with my stata commands. I am estimating the effect of a gender wage gap …
looking for helpDear all, I am doing my thesis using ivregress 2sls. I face problem to export the first stage result…
Loading HCUP data onto STATA15 IC Software?I'm trying to open my KID 2016 data onto STATA IC15 software using the Load Program, but I'm unable …
Subscribe to:
Post Comments (Atom)
0 Response to I am shocked that Stata may not understand variable names literally
Post a Comment