Hi,
I am trying to identify the date when a drug reached Phase III in the clinical trial process. My data is in the form of a string (example below). I want two things:
1. to extract the earliest date that starts with 19. So in the example below that would be 1984
2. to extract all dates that start with 19.., split into a separate column for each date. So, the example below, I would ideally have two new columns for the three dates (since 1988 is repeated) - 1st with 1984, 2nd with 1988
"It was effective in: sarcoidosis; severe herpes simplex infections (1st World Conf Inflamm Antirheum Analg Immunomod (Venice), 1984, 140-147); secondary immunodeficiency after major surgery (1st Int Cong Imm Conseq Trauma Shock Sepsis (Munich), 1988, Abs OR45); psoriasis (3rd Eur Symp Psoriasis (Trieste), 1988, P32)"
Any guidance would be much appreciated!
Thanks,
Karishma
Related Posts with Extracting multiple years mentioned in a string
making graphs into APA 7th formatHi again, Does anyone know how to edit/export graphs such as plots into APA 7th formatting? The Grap…
ranking and creating a dummy variable based on quantilesHello, I have this panel data. Array I want to rank the variable (REV_CH_mean5) within each indust…
compare entire columns in a dta file and create a new column based on the resultHello all, Can some help me with this. I have few columns to compare and generate a new column base…
ppmlhdfe error when no independent variable is includedDear STATA community, I run into error when I run ppmlhdfe with no independent variable. For exampl…
LR intervalDoes anyone have code for estimating the interval Likelihood ratio? I have done some analyses using …
Subscribe to:
Post Comments (Atom)
0 Response to Extracting multiple years mentioned in a string
Post a Comment