起源目的地变量Stata
我正在研究一个面板数据,并在2000 - 2018年间对美国各州进行观察。我的目标是分析跨各州的迁移流动。为了分析流量,我需要为我的变量创建原点用途对。现在,我只有原始变量,如以下示例:
示例:
StateID_Orig.
AL
AL
AL
AL
需要创建目标变量,以使其看起来像下面的示例。
示例:
StateID_Orig. StateID_Dest
AL AK
AL AR
AL AZ
AL CA
谢谢!
I am working on a panel data with observations for all the US states for years 2000-2018. My goal is to analyze migration flows across all the states. I need to create Origin-Destination pairs for my variables, in order to analyze the flows. Right now I only have the origin variable, like in the example below:
Example:
StateID_Orig.
AL
AL
AL
AL
and need to create the destination variable, in order to make it look like in the example below.
Example:
StateID_Orig. StateID_Dest
AL AK
AL AR
AL AZ
AL CA
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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