全部版块 我的主页
论坛 计量经济学与统计论坛 五区 计量经济学与统计软件 Stata专版
2925 8
2011-09-23
在一个命令中,往往只是把主要结果显示出来的,我想显示其余的,应该如何操作?
比如命令xtrc 命令
Saved results

    xtrc saves the following in e():

    Scalars        
      e(N)                number of observations
      e(N_g)              number of groups
      e(df_m)             model degrees of freedom
      e(chi2)             chi-squared
      e(chi2_c)           chi-squared for comparison test
      e(df_chi2c)         degrees of freedom for comparison chi-squared test
      e(g_min)            smallest group size
      e(g_avg)            average group size
      e(g_max)            largest group size
      e(rank)             rank of e(V)

    Macros         
      e(cmd)              xtrc
      e(cmdline)          command as typed
      e(depvar)           name of dependent variable
      e(ivar)             variable denoting groups
      e(title)            title in estimation output
      e(offset)           offset
      e(chi2type)         Wald; type of model chi-squared test
      e(vce)              vcetype specified in vce()
      e(vcetype)          title used to label Std. Err.
      e(properties)       b V
      e(predict)          program used to implement predict
      e(marginsnotok)     predictions disallowed by margins
      e(asbalanced)       factor variables fvset as asbalanced
      e(asobserved)       factor variables fvset as asobserved

    Matrices      
      e(b)                coefficient vector
      e(Sigma)            Sigma hat matrix
      e(beta_ps)          matrix of best linear predictors
      e(V)                variance-covariance matrix of the estimators
      e(V_ps)             matrix of variances for the best linear predictors; row i contains vec of
                            variance matrix for group i predictor


对于Scalars 中的,如e(N),那直接display e(N)就行了

我想问下,怎么显示第三部份 矩阵 Matrices的内容?

如e(b),display e(b)会出错
二维码

扫码加我 拉你入群

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

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

全部回复
2011-9-23 14:53:43
matrix list e(b)
二维码

扫码加我 拉你入群

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

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

2011-9-23 14:56:14
蓝色 发表于 2011-9-23 14:53
matrix list e(b)
好的建议,谢谢
二维码

扫码加我 拉你入群

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

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

2011-11-12 21:30:11
蓝色 发表于 2011-9-23 14:53
matrix list e(b)
版主,我想问下能不能看macros中的内容
比如xtabond命令,看帮助有:
Macros        
      e(cmd)             xtdpd
      e(cmdline)         command as typed
      e(depvar)          name of dependent variable
      e(twostep)         twostep, if specified
      e(ivar)            variable denoting groups
      e(tvar)            time variable
      e(vce)             vcetype specified in vce()
      e(vcetype)         title used to label Std. Err.
      e(system)          system, if system estimator
      e(hascons)         hascons, if specified
      e(transform)       specified transform
      e(engine)          xtdpd
      e(div_odvars)      differenced variables used as standard instruments for differenced equation and not for level equation
      e(div_olvars)      level variables used as standard instruments for differenced equation and not for level equation
      e(liv_olvars)      level variables used as standard instruments for level equation and not for differenced equation
      e(div_dvars)       differenced variables used as standard instruments for differenced equation
      e(div_lvars)       level variables used as standard instruments for differenced equation
      e(liv_lvars)       level variables used as standard instruments for level equation
      e(dgmmiv_vars)     variables used to create GMM-type instruments for differenced equation
      e(dgmmiv_flag)     first lags of variables used to create GMM-type instruments for differenced equation
      e(dgmmiv_llag)     last lags of variables used to create GMM-type instruments for differenced equation
      e(lgmmiv_vars)     variables used to create GMM-type instruments for level equation
      e(lgmmiv_flag)     first lags used to create GMM-type instruments for level equation
      e(diffvars)        already differenced variables
      e(datasignature)   checksum from datasignature
      e(properties)      b V
      e(estat_cmd)       program used to implement estat      
    e(predict)         program used to implement predict

scalars和matrix都可以看,那macros呢?应该如何利用这个选项
      
二维码

扫码加我 拉你入群

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

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

2011-11-15 12:25:06
di "`e(cmd)'"
二维码

扫码加我 拉你入群

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

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

2011-11-15 23:01:23
sungmoo 发表于 2011-11-15 12:25
di "`e(cmd)'"
谢谢斑竹
您好,我还是不明白应该如何利用这一功能
比如,我运行如下stata自带例子
webuse abdata
xtabond n l(0/1).w l(0/2).(k ys) yr1980-yr1984, lags(2)

. di "e(cmd)  "
e(cmd)

就只显示了e(cmd),这没有实际意义

e(estat_cmd)       program used to implement estat
按这个提示,是什么意思呢?
二维码

扫码加我 拉你入群

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

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

点击查看更多内容…
相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

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