楼主: chrisalf
9512 6

[一般统计问题] Stata软件no room。。我该怎么compress我的data [推广有奖]

  • 0关注
  • 0粉丝

小学生

57%

还不是VIP/贵宾

-

威望
0
论坛币
27 个
通用积分
0
学术水平
0 点
热心指数
0 点
信用等级
0 点
经验
113 点
帖子
9
精华
0
在线时间
0 小时
注册时间
2008-1-23
最后登录
2008-6-22

楼主
chrisalf 发表于 2008-4-9 14:51:00 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币
有人遇到过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,照道理不应该这样子的。。郁闷了。。。
二维码

扫码加我 拉你入群

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

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

关键词:compress stata软件 Stata Press Data currently following existing required because

沙发
蓝色 发表于 2008-4-9 15:06:00

set mem 200m,perm

set mat 800,perm

已有 1 人评分论坛币 学术水平 热心指数 收起 理由
crystal8832 + 10 + 1 + 1 补偿

总评分: 论坛币 + 10  学术水平 + 1  热心指数 + 1   查看全部评分

藤椅
chrisalf 发表于 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,但是上面一长串是什么意思哦?对我的数据有影响么?

板凳
whgyu 发表于 2008-4-10 07:54:00
还有个有用的命令: compress

报纸
vivianneva 发表于 2009-9-16 21:53:45
thanks indeed

地板
shineking1985 发表于 2009-9-23 08:49:53
set matsize 800

7
zhl2013 发表于 2014-10-16 20:01:29
赞美,很有用处

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

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2025-12-5 20:45