全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
9469 6
2008-04-09
有人遇到过stata说no room to add more variables because of width
    An attempt was made to add a variable that would have increased the memory required to store an observation beyond
    what is currently possible.  You have the following alternatives:
     1.  Store existing variables more efficiently; see help compress.
     2.  Drop some variables or observations; see help drop.  (Think of Stata's data area as the area of a rectangle;
         Stata can trade off width and length.)
     3.  Increase the amount of memory allocated to the data area using the set memory command; see help memory.
r(902);
不是太明白,应该怎么把data变小呢? 我的文件并不大,只有3.71MB,照道理不应该这样子的。。郁闷了。。。
二维码

扫码加我 拉你入群

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

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

全部回复
2008-4-9 15:06:00

set mem 200m,perm

set mat 800,perm

二维码

扫码加我 拉你入群

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

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

2008-4-9 16:22:00

太神了~~~谢谢~~~

用了set mem 200m,perm
有了 * Replace 'X' with the name of the dictionary file.
. *
. * The contents of the dictionary are given at the end of this file.
. * Put the dictionary into a separate file (by editing this file).
. * Then specify here the name of the dictionary file.
. *******************************************************************
. * The md, min and max specifications were translated
. * into the following "REPLACE...IF" statements:
.
. replace tenurp = . if (tenurp == 9)
(1480 real changes made, 1480 to missing)

. replace prescp = . if (prescp == 9)
(159805 real changes made, 159805 to missing)

. replace immpopp = . if (immpopp == 8)
(132 real changes made, 132 to missing)

. replace yrimmiga = . if (yrimmiga == 98 | yrimmiga == 99)
(379061 real changes made, 379061 to missing)

. replace immiagep = . if (immiagep == 98 | immiagep == 99)
(377040 real changes made, 377040 to missing)

. replace visminp = . if (visminp == 8)
(132 real changes made, 132 to missing)

. replace olnp = . if (olnp == 8)
(132 real changes made, 132 to missing)

. replace dgmfsp = . if (dgmfsp == 99)
(88162 real changes made, 88162 to missing)

. replace totschp = . if (totschp == 99)
(88162 real changes made, 88162 to missing)

. replace wagesp = . if (wagesp == 9999999)
(88162 real changes made, 88162 to missing)

然后发现可以了用reg了,hoho,但是上面一长串是什么意思哦?对我的数据有影响么?

二维码

扫码加我 拉你入群

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

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

2008-4-10 07:54:00
还有个有用的命令: compress
二维码

扫码加我 拉你入群

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

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

2009-9-16 21:53:45
thanks indeed
二维码

扫码加我 拉你入群

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

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

2009-9-23 08:49:53
set matsize 800
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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