Hello everyone,
I'm new to STATA and i have the following problem:
I want to drop all observations, that don't contain the words "Mergers" or "Acquisition" for the Variable (String) "Dealtype".
I used the following Drop if Strmatch formula:
drop if strmatch(Dealtype, "*Merger*")==0
worked just fine but then STATA deletes everything, that isn't named Merger. How can i add the Condition to delete all Observations, if the Variable "Dealtype" doesn't contain the words "Merger" OR "Acquisition"?
Hope you can help me out.
Related Posts with Drop if Strmatch with multiple conditions
Multilevel modeling and density functionHello, sorry for cross-posting but i'd like to give this post more visibility. I have been asked to …
Subtracting time series and creating new groupDear Statalist members, Having extensively browsed the Statalist forums without finding an answer t…
DataSet Notes from huge DTA fileHi everyone, Any hint about reading dataset's notes embedded in a huge (>10Gb) DTA file. I used …
DataSet Notes from huge DTA fileHi everyone, Any hint about reading dataset's notes embedded in a huge (>10Gb) DTA file. I used …
Iterations in Poission RegressionI was running a code for negative binomial and poisson regression and the results were not convergin…
Subscribe to:
Post Comments (Atom)
0 Response to Drop if Strmatch with multiple conditions
Post a Comment