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
Identifying same type of name in string variableHello users, i have dataset where one variable is string and it contain name, weight etc. of the pro…
How to specify Study ID using metaprop command in meta-analysis output table?Hello I am struggling to specify study ID variable in the metaprop command below: metaprop num deno…
Command not workingI has install egenmore and ereplace through ssc install. After it, command ereplace v1 = seive(v1), …
Problem with pvar and pvargranger command & interpretationDear Stata Community, I would like to hear your opinion on the results I get from the reverse causa…
esttab: names of categorical variables not shownHello, I am currently trying to display the results of 4 logistic regression analyses using esttab.…
Subscribe to:
Post Comments (Atom)
0 Response to Drop if Strmatch with multiple conditions
Post a Comment