全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
5457 5
2009-05-06
<p>我的STATA10.0的,</p><p>. egen zz4=rowsum(waterfee,electricalfee)<br/><font color="#f70909">unrecognized command:  _growsum</font><br/><font color="#3cc4c4">r(199);</font></p><p>这是怎么回事?试了好几遍不行。</p><p>rowmean(waterfee,electricalfee)也不行。</p><p>望高手指点!!</p>
二维码

扫码加我 拉你入群

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

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

全部回复
2009-5-6 12:15:00

是你那样写的吗?

看看帮助的例子啊。   

----------------------------------------------------------------------------------------------------------------
    Setup
        . webuse egenxmpl4, clear

    Create hsum containing the row sum of a, b, and c for each row
        . egen hsum = rowtotal(a b c)

    Create havg containing the row mean of a, b, and c for each row
        . egen havg = rowmean(a b c)

    Create hstd containing the row standard deviation of a, b, and c for each row
        . egen hsd = rowsd(a b c)

    Create hnonmiss containing the number of nonmissing observations of a, b, and c for each row
        . egen hnonmiss = rownonmiss(a b c)

    Create hmiss containing the number of missing observations of a, b, and c for each row
        . egen hmiss = rowmiss(a b c)

    List the results
        . list

二维码

扫码加我 拉你入群

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

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

2009-5-6 12:31:00

难道重庆大学出版社那本书上的命令是错的?

谢谢版主。

但是我参考的重庆大学出版社《应用stata做统计分析》的301页就是用的egen sum= rowsum(x,y,z)。还用逗号隔开的,不是空格。

他这种是错误的吗?

二维码

扫码加我 拉你入群

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

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

2009-5-6 13:07:00
以下是引用久石在2009-5-6 12:31:00的发言:

谢谢版主。

但是我参考的重庆大学出版社《应用stata做统计分析》的301页就是用的egen sum= rowsum(x,y,z)。还用逗号隔开的,不是空格。

他这种是错误的吗?

是第30页吧。尽信书则不如无书,要相信自己

[此贴子已经被作者于2009-5-6 13:12:05编辑过]

二维码

扫码加我 拉你入群

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

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

2009-5-6 13:19:00

对,是30页。

std()也错了吧,应该是sd()吧。

逗号和空格都行吗?

二维码

扫码加我 拉你入群

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

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

2009-5-6 14:24:00

要查stata的帮助。

二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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