I am trying to do a mortality search for a specific disease (X), in a national database. what is the difference between using regex and strpos?
gen X=.
replace X=1 if regexm(Cause of dead,"X")==1
vs
replace X=1 if strpos(Cause of dead,”X”)>0
Related Posts with Difference - regex vs strpos?
global temporary dataset for interactive use in multiple DO fileI intend to use the `temp' file in multiple DO files, however, the file vanishes as the first do fil…
Question on xtgee syntaxDear Statlist, I am trying to determine whether there is a difference in the success proportion bet…
call file with abbreviationI have monthly files which names are composed by a standard pattern ("TabelaUnificada_" and respecti…
2-stage models for panel dataDear All, I am estimating the willingness to pay for insurance over 5 years, whereas the insurance …
Form monthly calendar portfoliosHello Stata forum: I want to make an event study for share repurchase announcements by using the ca…
Subscribe to:
Post Comments (Atom)
0 Response to Difference - regex vs strpos?
Post a Comment