How to generate a dummy variable in Stata based on a sub-string of an existing string variable?

后端 未结 0 791
醉梦人生
醉梦人生 2020-12-18 03:06

I am looking for a way to create a dummy variable which checks a variable called text against multiple given substrings like "book, buy, journey".

Now, I wa

相关标签:
回答
  • 消灭零回复
提交回复
热议问题