全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
1863 1
2014-04-12
各位同学老师,帮我看下这个程序为什么会出现
conformability error
多谢了:)

local s=28

mat agg_i=I(28)

while `s'>=1{

local ss=1+int((`s'-2)*uniform())

mat agg_i[1, `ss']=agg_i[...., `ss']+agg_i[...., `s']

mat agg_i=agg_i[...., 1..`s'-1]

mat list agg_i

local s=`s'+1

}


二维码

扫码加我 拉你入群

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

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

全部回复
2014-4-12 15:33:35
搞定搞定了,是最后一句应该是  s=`s'-1
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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