全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
1342 3
2020-04-15
ols!!1
二维码

扫码加我 拉你入群

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

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

全部回复
2020-4-15 00:02:44
顶一顶,希望能有好心大神救助一下!!!
二维码

扫码加我 拉你入群

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

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

2020-4-15 10:02:49
. myprog price mpg rep78,noconstant
matrix __000002__000003 not found
r(111);


这是错误显示..在网上搜说可能是样本数据太大导致的。。。但是我用的是系统自带的auto的那个数据集。。。感觉不应该啊。。。。
求指点!!!
二维码

扫码加我 拉你入群

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

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

2020-4-15 10:13:00
以下是set trace on 后的显示

. myprog price mpg rep78,noconstant
- syntax varlist(numeric ts min=2 ) [if] [in] [,noCONStant]
- marksample touse
- gettoken depvar indeps: varlist
- tempname b V t
- mata: ols2("`depvar'","`indeps'","`touse'","`constant'")
= mata: ols2("price"," mpg rep78","__000001","noconstant")
                  1              2              3
    +----------------------------------------------+
  1 |  -271.6425431    666.9567638    9657.754439  |
    +----------------------------------------------+
[symmetric]
                  1              2              3
    +----------------------------------------------+
  1 |   3337.506101                                |
  2 |  -7957.607523    117207.5816                 |
  3 |  -43953.02457   -229768.9308    1813170.961  |
    +----------------------------------------------+
                 1             2             3
    +-------------------------------------------+
  1 |   -4.7020447   1.948138498   7.172272494  |
    +-------------------------------------------+
- matrix `b'=r(b)
= matrix __000002=r(b)
- matrix `V'=r(V)
= matrix __000003=r(V)
- matrix `t'=r(t)
= matrix __000004=r(t)
- ereturn post `b'`V',esample(`touse')
= ereturn post __000002__000003,esample(__000001)
matrix __000002__000003 not found

r(111);

很奇怪!明明都可以显示matrix b和V,为什么在ereturn post `b'`V'的时候又找不到矩阵了呢!
二维码

扫码加我 拉你入群

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

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

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

说点什么

分享

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