楼主: savinggrace2008
5173 7

关于 set memory 的问题!急! [推广有奖]

  • 1关注
  • 0粉丝

高中生

95%

还不是VIP/贵宾

-

威望
0
论坛币
24 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
354 点
帖子
31
精华
0
在线时间
25 小时
注册时间
2008-10-19
最后登录
2018-11-12

楼主
savinggrace2008 发表于 2011-10-28 20:17:32 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
需要将样本筛选成平衡面板数据。
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);

请问我该如何处理???

二维码

扫码加我 拉你入群

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

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

关键词:memory Set observations alternatives observation memory

沙发
arkpm 发表于 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.

藤椅
savinggrace2008 发表于 2011-10-28 20:30:51
我使用的是 STATA10.0 SE 版本。
我的电脑是win7 32位 系统, 6G内存。

板凳
aolei 发表于 2011-10-28 20:31:53
处理数据时不能重设内存,就跟打开文件不能删除一样

报纸
arkpm 发表于 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

地板
arkpm 发表于 2011-10-28 20:33:13
dose it work?

7
savinggrace2008 发表于 2011-10-28 20:43:09
arkpm 发表于 2011-10-28 20:33
dose it work?
1000 mb is big enough. Thank you !

8
savinggrace2008 发表于 2011-10-28 20:43:40
aolei 发表于 2011-10-28 20:31
处理数据时不能重设内存,就跟打开文件不能删除一样
已经解决!谢谢!

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

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