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?
Help on storing estimates from multiple regressions run in loop for exporting them with esttabHello there, I have the following quarterly data. I intend to run a piecewise linear regression of …
identifying random slope by groupHi all, I have a multilevel logistic model (using melogit in Stata 15.1) written as: Code: melog…
Omitted dummy variable because of collinearityDear community I am running a panel data with fixed effects. The model I'm applying is a partial ad…
ebalfit: New command for entropy balancingA new command for entropy balancing is now available from SSC. Type Code: . ssc install ebalfit to…
Difference between instrumental variable interaction and instrumental variable subgroup analysisDear Statalist, For the following model under the IV framework: Code: ivreg2 cognition (infl_pneum…
Subscribe to:
Post Comments (Atom)
0 Response to Difference - regex vs strpos?
Post a Comment