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
Convergence not achieved in technical efficiency modelHi All, When I am running my frontier model (panel data) I got the message called "convergence not …
How to store each estimate of multiple regressions in a loop commandHi, I am running regression commands similar to the followings: logit y cov1 cov2 cov3 cov4 cov…
Can I upload my dataset on this website?I have a very tough question. And the data set is tons of observations and tons of time periods. So …
Metanalysis without controll group I am conducting a meta-analysis study for the first time. There is no comparison group. As a measur…
quantile for dynamic panelHi Do anyone read the paper of Galvao (2011) about quantile regression for dynamic panel data with f…
Subscribe to:
Post Comments (Atom)
0 Response to I am shocked that Stata may not understand variable names literally
Post a Comment