lesson on regex. The parentheses ( ) have syntactic roles, so they need to be escaped with \ to indicate that you are looking for literal parentheses. The other content .* means roughly that anything can occur in between. The first occurrence of each substring matching that pattern is replac...
> I need to assign the ID codes to the names in the second file. Is > there a quick way of matching the two files and assigning the codes? > I have thousands of records. Does stata match on strings through the > merge command. I have not been able to do it. > > For example ...
st: String Match From"Susanna Khavul" <skhavul@gmail.com> Tostatalist@hsphsun2.harvard.edu Subjectst: String Match DateFri, 13 Jun 2008 08:47:21 -0500
Prev by Date: Re: Re: st: Matching samples in Stata Next by Date: Re: Re: st: Pretreatment pair matching Previous by thread: st: Conversion from string to numeric with imported excel document Next by thread: Re: st: Conversion from string to numeric with imported excel document Ind...
To"statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu> SubjectRe: st: Re: string comparision DateMon, 30 Jul 2012 20:34:18 -0700 (PDT) Follow-Ups: RE: st: Re: string comparision From:tashi lama <ltashi32@hotmail.com> ...
Subject st: Re: removing characters from string-formatted variables mixed in with numeric-formatted variables Date Fri, 22 Jun 2012 12:06:09 -0400Somebody replied off list to me with the following code which worked wonderfully. The -ds- command is for listing "variables matching name patterns ...
matchit appln_id appt1_name using corp.dta, idu(id) txtu(subs) di sim(token) Matching current dataset with corp.dta Similarity function: token Performing preliminary diagnosis --- Analyzing Master file List of most frequent grams in Master file: grams freq grams_per_obs 1. LTD 4179 0.142...