I'm wanting to use confirm numeric format to check that a user-entered format is valid, but when the format IS valid, the return code is 111. This code is not acted on, ie the program continues.
confirm numeric format %5.2f
di "_rc:" _rc
This seems to be a bug? It means that I have to explicitly test for _rc==7 rather than just !_rc in my program
Related Posts with confirm numeric format returns error code 111
3SLS with Instrument VariablesIs it possible to run a 3SLS specification using instrument variables in Stata? I have the followin…
Sample Selection BiasI have some data from the labour force survey and I'm estimating wage regression. I want to include …
Trying to do Rolling Standard Deviation give me this error. Can someone help ?Here is the command: tsset GVKEY_n Year rolling sd_NIBE=r(sd), window (4) clear : su NetIncome And…
can we transfer args in different do file or how to use statapush efficiently?As far as I know, user-command statapush can be used in seperate way. Usually, I have to seperate do…
Counting dummy for a group of multiple variablesHi all, I am trying to accomplish a simple count, but I still am not able to get what I want after …
Subscribe to:
Post Comments (Atom)
0 Response to confirm numeric format returns error code 111
Post a Comment