I have a string variable containing licence plates, names and dates separated by / . As in 122000200106_Cheyrmen, Murauwatpur Panchayat Pacs-02/11 where 11 is 2011, in 121900200198_Shiv Nath Prasad Sah-72/2007 2007 is 2007, and in 121500100430_Dinesh Poddar-02/93 93 is 1993. How can I extract the year in YYYY format? Any suggestions would help, thanks
Related Posts with Splitting strings
Question about recoding a variable, having issues with deleting some unwanted values.Hello everybody. I am a stata beginner, trying to do some descriptive analysis on a survey data. My…
cox proportional hazard model with log-transformed variablesHi, I ran a cox proportional hazard model to predict cumulative baseline hazard and xbeta. My code …
Matching options using psmatch2Hi, I am performing propensity score matching using the "psmatch2" command (and, in particular, usi…
Using Matrix commandDear Users, I have two freq tables as follows: Table 1 Code: pml | Freq. Per…
Query about r(5); errorI am following certain accounting models to estimate measures of financial reporting quality. I have…
Subscribe to:
Post Comments (Atom)
0 Response to Splitting strings
Post a Comment