楼主: wyy19860530
8487 1

csv文件导入stata后,变量丢失的问题 [推广有奖]

  • 0关注
  • 0粉丝

硕士生

7%

还不是VIP/贵宾

-

威望
0
论坛币
0 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
892 点
帖子
59
精华
0
在线时间
164 小时
注册时间
2007-4-18
最后登录
2018-12-19

楼主
wyy19860530 在职认证  发表于 2009-9-12 23:13:58 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
我现在生成了一个csv文件(可用EXCEL打开),但是用命令insheet using"data3.csv", stata的输出是: (6 vars, 41 obs)
但是下一个命令drop countryname seriescode yr2000,stata的输出时variable countryname not found
我看了一下data browser, 发现变量并没有到那个v1, v2, v3.......那个在表格上的一行(那一行就是代表的变量),而是全部到了下一行,成了我6个变量的第一个数值了。。。这个问题应该怎么解决呢?其实我还有一个csv文件的内容几乎和这个有问题的csv文件一摸一样,但是前一个csv文件可以打开啊?

谢谢大家
二维码

扫码加我 拉你入群

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

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

关键词:Stata tata Variable Country insheet 变量 文件 Stata CSV

回帖推荐

dxystata 发表于2楼  查看完整内容

help insheet [no]names informs Stata whether or not variable names are included on the first line of the file. Specifying this option will speed insheet's processing, assuming that you are right. insheet can determine for itself whether the file includes variable names.

本帖被以下文库推荐

沙发
dxystata 发表于 2009-9-13 02:23:56
help insheet
[no]names informs Stata whether or not variable names are included on the first line of the file.
        Specifying this option will speed insheet's processing, assuming that you are right.  insheet can
        determine for itself whether the file includes variable names.

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2026-1-17 05:39