根据其他两个变量是否相互匹配的虚拟代码
对于我的主论文,我正在与Rstudio合作,并分析M&一个数据。我想根据获取&目标公司SIC代码匹配。
我确实知道如何创建虚拟代码,但不是基于其他两个变量的匹配。谁能帮忙? 在此处输入图像说明
您在下面找到了指向ScreenShot的链接。因此,我基本上想做的甚至(如果可能的话)是基于NAICS代码的匹配来生成列公司相关性的虚拟值 例如:221111(收购方NAICS代码)& 221111(目标公司) 坚定的相关性1,否则0 我可以在Excel中手动进行,但是在更大的规模上可能需要更多时间
for my master thesis i am working with Rstudio and analyze M&A data. I want to create a dummy code (Firm relatedness yes/no) based on whether the acquiring & target firms SIC Code match.
I do know how to create dummy codes but not based on the matching of other two variables. can anyone help? enter image description here
below you find a link to the screenshot. so what i basically want to do or even know (if its possible) is to generate dummy values for the column Firm relatedness based on the match of NAICS Codes
e.g.: 221111 (acquirer naics code) & 221111 (target firm)
Firm relatedness 1, otherwise 0
i could do it manually in excel, but on a larger scale it would take some more time
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论