. destring ANOPRIDI, generate (date_dx)
ANOPRIDI: contains nonnumeric characters; no generate
. d ANOPRIDI
storage display value
variable name type format label variable label
-----------------------------------------------------------------------------------------------------------------
ANOPRIDI str4 %9s ANOPRIDI
. list ANOPRIDI in 1/10
+----------+
| ANOPRIDI |
|----------|
1. | 2000 |
2. | 2000 |
3. | 9999 |
4. | 2000 |
5. | 2000 |
|----------|
6. | 1995 |
7. | 2000 |
8. | 2000 |
9. | 2000 |
10. | 2000 |
+----------+
Related Posts with String into numerical but didn't work
Ivreg2 -Endogeneity and Hansen J statisticsHello all, I'm currently working on a cross-section with iveg2 (gmm2s to address the heteroskedasti…
Issue with loop saving graphs with more than one wordHi all, I have set up the following loop: Code: foreach name in "Botswana" "Burkino Faso" "Camero…
Help with Panel Data fixed effectsDear all, I need help with running a fixed effect regression in Stata, but let me tell you in advan…
Omitted variables in RE regressionHello everyone, I have panel data with 163 countries and 15 time units (months). I am trying to inc…
how to use tempvar more efficiently?If I run syntax with tempvar in a block, Stata will generate variables such as __0000001 __0000002, …
Subscribe to:
Post Comments (Atom)
0 Response to String into numerical but didn't work
Post a Comment