楼主: 落叶无雨
25672 40

[回归分析求助] 空间面板计量:xsmle -- conformability error 如何处理,谢谢! [推广有奖]

已卖:21份资源

教授

4%

还不是VIP/贵宾

-

威望
0
论坛币
9 个
通用积分
118.4830
学术水平
72 点
热心指数
85 点
信用等级
63 点
经验
7505 点
帖子
423
精华
1
在线时间
1539 小时
注册时间
2011-10-22
最后登录
2025-12-19

楼主
落叶无雨 学生认证  发表于 2016-4-14 10:15:20 |AI写论文
5论坛币
如题,在使用xsmle命令遇到conformability error类错误,请问如何处理,谢谢!

. spmat use w using usaww.spmat
. spmat summarize w,links
. use "C:\Users\IBM\Desktop\xsmle\product.dta", clear
. xtset state year
. xsmle gsp pc unemp hwy,wmat(w) model(sdm) fe type(both) hausman noeff nolog

1.jpg



数据: data.rar (24.71 KB)





1.jpg (113.95 KB)

1.jpg

关键词:Ability Error FORMA 空间面板 form 如何 summarize Desktop error Users
已有 2 人评分经验 论坛币 收起 理由
np84 + 100 精彩帖子
happy_287422301 + 20 鼓励积极发帖讨论

总评分: 经验 + 100  论坛币 + 20   查看全部评分

沙发
happy_287422301 在职认证  发表于 2016-4-14 10:30:22
静候高人点拨,愿意自主资助两百币

藤椅
shuailiushuai 学生认证  发表于 2016-4-14 10:46:20
选择项中没有hausman这一项,你去了看一下。
已有 1 人评分论坛币 收起 理由
happy_287422301 + 40 热心帮助其他会员

总评分: 论坛币 + 40   查看全部评分

板凳
落叶无雨 学生认证  发表于 2016-4-14 10:49:38
shuailiushuai 发表于 2016-4-14 10:46
选择项中没有hausman这一项,你去了看一下。
你好,是可以做的,谢谢回复。

   SDM_options                    Description
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Model
      wmat(name)                   specify the weight matrix for the spatial-autoregressive term
      dmat(name)                   specify the weight matrix for the spatially lagged regressors; default is to use the wmat() matrix.
      durbin(varlist)              specify the regressors that have to be spatially lagged; default is to lag all independent variables in varlist
      re                           use the random effects estimator; the default
      fe                           use the fixed effects estimator
      type(type_options[, leeyu])  specify fixed-effects type

    SE/Robust
      vce(vcetype)                 may be oim, opg, robust, cluster clustvar, dkraay #
      robust                       synonym for vce(robust)
      cluster(clustvar)            synonym for vce(cluster clustvar)

    Other
      noconstant                   suppress the constant term in the model. Only for re estimator
      noeffects                    suppress the computation of direct, indirect and total effects
      nsim(#)                      set the number of simulations to compute the standard errors for the spatial direct and indirect effects
      constraints(constraints)     apply specified linear constraints
      from(init_specs)             specify initial values for the coefficients
      hausman                      performs the Hausman test

报纸
落叶无雨 学生认证  发表于 2016-4-14 10:55:11
可以直接做hausman检验的的。

2.jpg (354.08 KB)

2.jpg

地板
落叶无雨 学生认证  发表于 2016-4-14 10:56:24
shuailiushuai 发表于 2016-4-14 10:46
选择项中没有hausman这一项,你去了看一下。
你好,最新版本的命令是有这个选项的。

7
落叶无雨 学生认证  发表于 2016-4-14 10:56:59
happy_287422301 发表于 2016-4-14 10:30
静候高人点拨,愿意自主资助两百币
谢谢支持
已有 1 人评分经验 收起 理由
happy_287422301 + 100 补偿

总评分: 经验 + 100   查看全部评分

8
shuailiushuai 学生认证  发表于 2016-4-14 11:03:07
那是不是对于re fe的选择有要求,我看见回归时,是在做re时出了错误。
已有 1 人评分论坛币 收起 理由
happy_287422301 + 40 热心帮助其他会员

总评分: 论坛币 + 40   查看全部评分

9
shuailiushuai 学生认证  发表于 2016-4-14 11:18:27
SDM with spatial fixed-effects                       Number of obs =       816

Group variable: state                             Number of groups =        48
Time variable: year                                   Panel length =        17

R-sq:    within  = 0.8847
         between = 0.8306
         overall = 0.8281

Mean of fixed-effects =  7.2e+03

Log-likelihood = -7970.5114
------------------------------------------------------------------------------
         gsp |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
-------------+----------------------------------------------------------------
Main         |
          pc |   .8837416   .0134043    65.93   0.000     .8574697    .9100135
       unemp |  -1075.574   157.4354    -6.83   0.000    -1384.142   -767.0066
         hwy |  -.8850797   .2741557    -3.23   0.001    -1.422415   -.3477444
-------------+----------------------------------------------------------------
Wx           |
          pc |  -.2639598   .0491133    -5.37   0.000    -.3602201   -.1676995
       unemp |   39.86899   197.1216     0.20   0.840    -346.4822    426.2201
         hwy |   1.393976   .4683397     2.98   0.003     .4760469    2.311905
-------------+----------------------------------------------------------------
Spatial      |
         rho |   .3154221   .0442976     7.12   0.000     .2286003    .4022439
-------------+----------------------------------------------------------------
Variance     |
    sigma2_e |   1.74e+07   871692.5    19.97   0.000     1.57e+07    1.91e+07
------------------------------------------------------------------------------

已有 1 人评分论坛币 收起 理由
happy_287422301 + 40 热心帮助其他会员

总评分: 论坛币 + 40   查看全部评分

10
shuailiushuai 学生认证  发表于 2016-4-14 11:19:51
上面是我用你数据回归的,你可以不一次性把hausman给出。

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

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2026-2-7 13:32