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?
Multiple Ego Network AnalysisI have 3000+ ego networks in one database. I can not seem to figure out the code to run a density an…
How to use a synthetic control group as the control group in difference-in-differences analysis in StataI want to analyze the impact that the introduction of Google Fiber in Kansas City had on hours worke…
What is the best test to compare regression coefficients when we use a probit model?Hello, I run two regressions for the same sample when the only difference is that there I include o…
"Missing Imputed Values Produced" Error MessageI am trying to run the following mi impute command to impute infractions (INF_M6a), psychological sy…
How to convert the unprojected point data in lat/lon format into projected point dat, usable in spmapHi everyone, I have a list of selected airports in lat/lon format and want to scatter these points …
Subscribe to:
Post Comments (Atom)
0 Response to Difference - regex vs strpos?
Post a Comment