全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
3745 3
2016-03-11

. infile ge ag hi co dh dr tv sp ne ah ve pa pi re ab aa ld using D:\Data\as
> signment1.txt, clear
'subj' cannot be read as a number for ge[1]
'ge' cannot be read as a number for ag[1]
'ag' cannot be read as a number for hi[1]
'hi' cannot be read as a number for co[1]
'co' cannot be read as a number for dh[1]
'dh' cannot be read as a number for dr[1]
'dr' cannot be read as a number for tv[1]
'tv' cannot be read as a number for sp[1]
'sp' cannot be read as a number for ne[1]
'ne' cannot be read as a number for ah[1]
'ah' cannot be read as a number for ve[1]
've' cannot be read as a number for pa[1]
'pa' cannot be read as a number for pi[1]
'pi' cannot be read as a number for re[1]
're' cannot be read as a number for ab[1]
'ab' cannot be read as a number for aa[1]
'aa' cannot be read as a number for ld[1]
'ld' cannot be read as a number for ge[2]
(eof not at end of obs)
(33 observations read)


二维码

扫码加我 拉你入群

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

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

全部回复
2016-3-11 10:44:09
这个“变量”cannot be read as a number for “变量”,这个是什么意思呀?求高人指点(本人小白一个,刚刚接触stata)
二维码

扫码加我 拉你入群

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

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

2016-5-20 14:50:12
打个  end   就解决了
二维码

扫码加我 拉你入群

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

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

2016-7-28 13:30:35
    是不是数据类型的问题,本来是数值型数据,导入时弄成文本型的去了。可以试试infile str x1 int x3 float x3 using  signment1.txt, clear等命令实证每个变量类型,然后再导入呢。祝好运~
二维码

扫码加我 拉你入群

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

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

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

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