全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
5113 7
2011-10-28
需要将样本筛选成平衡面板数据。
id表示公司代码,t=1,2,....50,表示第几周,r表示股票的周回报率。
数据总数是73446。

输入 xtbalance, range(1 50)命令后,出现如下红字:
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(903);

我分别输入了  set memory 1g; set memory 100m等命令,依然不行:
set memory 1g
no; data in memory would be lost
r(4);
. set memory 100m
no; data in memory would be lost
r(4);

请问我该如何处理???

二维码

扫码加我 拉你入群

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

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

全部回复
2011-10-28 20:30:15
I think you need to set you memory before loading your data, if your RAM is big enough, try set mem 1000m, it should be big enough.
二维码

扫码加我 拉你入群

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

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

2011-10-28 20:30:51
我使用的是 STATA10.0 SE 版本。
我的电脑是win7 32位 系统, 6G内存。
二维码

扫码加我 拉你入群

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

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

2011-10-28 20:31:53
处理数据时不能重设内存,就跟打开文件不能删除一样
二维码

扫码加我 拉你入群

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

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

2011-10-28 20:32:38
savinggrace2008 发表于 2011-10-28 20:30
我使用的是 STATA10.0 SE 版本。
我的电脑是win7 32位 系统, 6G内存。
yes, your RAM is big enough, you can even try set mem 2500m
二维码

扫码加我 拉你入群

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

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

2011-10-28 20:33:13
dose it work?
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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