Hi. I want to extract country names from a string variable that has a significant amount of text. I've created a loop with the country names, but run into problems with words like "us"/"eu" which could be both a country name, but also letter combinations in other words. Is there anyway for me to extract the country names as stand alone words as in the loop below?
#delim ;
local list `""afghanistan" "albania" "algeria" "andorra" "angola" ///
"tanzania" "thailand" "timor-leste" "togo" "tonga" "trinidad and tobago" ///
"tunisia" "turkey" "turkmenistan" "tuvalu" "uganda" "ukraine" ///
"united arab emirates" "united kingdom" "united states of america" "uruguay" ///
"uzbekistan" "vanuatu" "venezuela" "vietnam" "yemen" "zambia" "zimbabwe" "uae"///
"uk" "usa" "asia" "australasia" "europe" "america" "s africa" "us" "eu" ///
"hong kong" "the us" "the eu" "russian federation" "burma" "n&s america" ///
"s america" "selected markets" "';
#delim cr
macro list _list
PS: I am unable to use dataex because of the following error. The amount of text in the variable is significantly long.
" Example generated by -dataex-. To install: ssc install dataex
clear
input strL Preclinical
data width (2847 chars) exceeds max linesize. Try specifying fewer variables"
#delim ;
local list `""afghanistan" "albania" "algeria" "andorra" "angola" ///
"tanzania" "thailand" "timor-leste" "togo" "tonga" "trinidad and tobago" ///
"tunisia" "turkey" "turkmenistan" "tuvalu" "uganda" "ukraine" ///
"united arab emirates" "united kingdom" "united states of america" "uruguay" ///
"uzbekistan" "vanuatu" "venezuela" "vietnam" "yemen" "zambia" "zimbabwe" "uae"///
"uk" "usa" "asia" "australasia" "europe" "america" "s africa" "us" "eu" ///
"hong kong" "the us" "the eu" "russian federation" "burma" "n&s america" ///
"s america" "selected markets" "';
#delim cr
macro list _list
Drug | Preclinical |
risperidone | Infection, HIV/AIDS Enrollment is complete in a non-randomized, open-label Phase II trial (TMC-278-C213; PAINT) in 35 treatment-naive adult HIV-1 patients to evaluate 25mg once-daily x48wk, in India, S Africa, Thailand, Uganda, Ukraine and the US (ClinicalTrials.gov Web Page, 5 Nov 2009 & 11 Sep 2013, http://clinicaltrials.gov/show/NCT00799864). In open-label, controlled, proof-of-concept German Phase II trial (TMC278-TiDP15-C221; 2008-006009-18) in 10 treatment-naive HIV-1 patients, to evaluate the antiviral activity of monotherapy over 7 days following single dose of TMC-278LA 600mg im has been suspended (EU Clinical Trial Registry, 2008-006009-18, 10 May 2012, https://www.clinicaltrialsregister.e...8-006009-18/DE). |
PS: I am unable to use dataex because of the following error. The amount of text in the variable is significantly long.
" Example generated by -dataex-. To install: ssc install dataex
clear
input strL Preclinical
data width (2847 chars) exceeds max linesize. Try specifying fewer variables"
Comment