全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
47494 25
2014-08-21
悬赏 50 个论坛币 已解决
如图,从wind上下下来的数据,数据第一行是各省的名称如何能查找第一行的名称,例如查找第一行哪个变量含新疆,然后对变量重新命名为v新疆
十分感谢!
数据1.jpg

原图尺寸 77.06 KB

数据1.jpg

最佳答案

liuxb 查看完整内容

试试lookfor命令。 lookfor helps you find variables by searching for string among all variable names and labels. If multiple strings are specified, lookfor will search for each of them separately. You may search for a phrase by enclosing string in double quotes.
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2014-8-21 10:53:19
试试lookfor命令。
lookfor helps you find variables by searching for string among all variable names and labels. If multiple strings are specified, lookfor will search for each of them separately.  You may search for a phrase by enclosing string in double quotes.
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2014-8-21 11:03:52
希望大家帮忙
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2014-8-21 13:49:54
我把这个表改为csv,然后倒入stata 用lookfor,没有反应
请问具体到这个表,应该怎么做?
附件列表
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2014-8-21 13:50:31
liuxb 发表于 2014-8-21 12:45
试试lookfor命令。
lookfor helps you find variables by searching for string among all variable names ...
能不能具体到这个问题,回答一下,感谢,感谢!
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

2014-8-21 19:56:20
你的第一行是中文,是不可能在Stata里变成variable name的。Stata中variable name是不支持中文的,你需要起英文variable name
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群