楼主: pandora_blue
17139 13

[面板数据求助] xtlogit 模型做cluster的处理 [推广有奖]

  • 1关注
  • 0粉丝

博士生

3%

还不是VIP/贵宾

-

威望
0
论坛币
2519 个
通用积分
33.1010
学术水平
1 点
热心指数
1 点
信用等级
1 点
经验
853 点
帖子
31
精华
0
在线时间
415 小时
注册时间
2012-11-26
最后登录
2022-9-23

楼主
pandora_blue 发表于 2016-4-25 17:29:35 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币
各位前辈:
       xtlogit 模型做cluster的处理的时候一直显示如下:
       vcetype 'cluster' not allowed
       r(198)

请问:是哪里出了问题呢?跪求各位前辈答疑解惑(づ ̄3 ̄)づ╭❤~

二维码

扫码加我 拉你入群

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

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

关键词:xtlogit Cluster logit CLU Log 模型

回帖推荐

蓝色 发表于5楼  查看完整内容

帮助里面写了 re 有cluster选项 fe和pa模型都不能

沙发
zhoujt11 学生认证  发表于 2017-7-12 11:42:13
同问,楼主你解决了吗?

藤椅
nightwings 发表于 2017-7-12 12:09:49 来自手机
xtlogit是没有cluster选项的。如果要cluster by ID,用robust option就可以了,robust默认就是cluster by ID.

板凳
zhoujt11 学生认证  发表于 2017-7-12 16:06:16
nightwings 发表于 2017-7-12 12:09
xtlogit是没有cluster选项的。如果要cluster by ID,用robust option就可以了,robust默认就是cluster by ID ...
谢谢~~~~

报纸
蓝色 发表于 2017-7-12 16:28:07


帮助里面写了
re 有cluster选项
fe和pa模型都不能


  1. [XT] xtlogit -- Fixed-effects, random-effects, and population-averaged logit models


  2. Syntax

  3.     Random-effects (RE) model

  4.         xtlogit depvar [indepvars] [if] [in] [weight] [, re RE_options]


  5.     Conditional fixed-effects (FE) model

  6.         xtlogit depvar [indepvars] [if] [in] [weight] , fe [FE_options]


  7.     Population-averaged (PA) model

  8.         xtlogit depvar [indepvars] [if] [in] [weight] , pa [PA_options]


  9.     RE_options                   Description
  10.     ---------------------------------------------------------------------------------------
  11.     Model
  12.       noconstant                 suppress constant term
  13.       re                         use random-effects estimator; the default
  14.       offset(varname)            include varname in model with coefficient constrained to 1
  15.       constraints(constraints)   apply specified linear constraints
  16.       collinear                  keep collinear variables
  17.       asis                       retain perfect predictor variables

  18.     SE/Robust
  19.       vce(vcetype)               vcetype may be oim, robust, cluster clustvar, bootstrap,
  20.                                    or jackknife

  21.     Reporting
  22.       level(#)                   set confidence level; default is level(95)
  23.       or                         report odds ratios
  24.       noskip                     perform overall model test as a likelihood-ratio test
  25.       nocnsreport                do not display constraints
  26.       display_options            control column formats, row spacing, line width, display
  27.                                    of omitted variables and base and empty cells, and
  28.                                    factor-variable labeling

  29.     Integration
  30.       intmethod(intmethod)       integration method; intmethod may be mvaghermite (the
  31.                                    default) or ghermite
  32.       intpoints(#)               use # quadrature points; default is intpoints(12)

  33.     Maximization
  34.       maximize_options           control the maximization process; seldom used

  35.       nodisplay                  do not display the header and coefficients
  36.       coeflegend                 display legend instead of statistics
  37.     ---------------------------------------------------------------------------------------


  38.     FE_options                   Description
  39.     ---------------------------------------------------------------------------------------
  40.     Model
  41.       fe                         use fixed-effects estimator
  42.       offset(varname)            include varname in model with coefficient constrained to 1
  43.       constraints(constraints)   apply specified linear constraints
  44.       collinear                  keep collinear variables

  45.     SE
  46.       vce(vcetype)               vcetype may be oim, bootstrap, or jackknife

  47.     Reporting
  48.       level(#)                   set confidence level; default is level(95)
  49.       or                         report odds ratios
  50.       noskip                     perform overall model test as a likelihood-ratio test
  51.       nocnsreport                do not display constraints
  52.       display_options            control column formats, row spacing, line width, display
  53.                                    of omitted variables and base and empty cells, and
  54.                                    factor-variable labeling

  55.     Maximization
  56.       maximize_options           control the maximization process; seldom used

  57.       nodisplay                  do not display the header and coefficients
  58.       coeflegend                 display legend instead of statistics
  59.     ---------------------------------------------------------------------------------------


  60.     PA_options                   Description
  61.     ---------------------------------------------------------------------------------------
  62.     Model
  63.       noconstant                 suppress constant term
  64.       pa                         use population-averaged estimator
  65.       offset(varname)            include varname in model with coefficient constrained to 1
  66.       asis                       retain perfect predictor variables

  67.     Correlation
  68.       corr(correlation)          within-panel correlation structure
  69.       force                      estimate even if observations unequally spaced in time

  70.     SE/Robust
  71.       vce(vcetype)               vcetype may be conventional, robust, bootstrap, or
  72.                                    jackknife
  73.       nmp                        use divisor N-P instead of the default N
  74.       scale(parm)                override the default scale parameter; parm may be x2, dev,
  75.                                    phi, or #
复制代码


已有 2 人评分经验 论坛币 学术水平 热心指数 信用等级 收起 理由
lizhewenbei + 2 + 4 + 4 + 4 很好!
葫芦娃大王 + 1 + 1 精彩帖子

总评分: 经验 + 1  论坛币 + 3  学术水平 + 4  热心指数 + 4  信用等级 + 4   查看全部评分

地板
zhoujt11 学生认证  发表于 2017-7-12 17:05:01
nightwings 发表于 2017-7-12 12:09
xtlogit是没有cluster选项的。如果要cluster by ID,用robust option就可以了,robust默认就是cluster by ID ...
你好,我还有2个问题~~
1、面板数据控制时间和行业固定效应        xi: xtreg y x i.year i.industry, fe      还加后面的fe吗?
2、year industry ID 这三个,dummy和cluster可以任意分配吗?

7
nightwings 发表于 2017-7-18 08:57:14
zhoujt11 发表于 2017-7-12 17:05
你好,我还有2个问题~~
1、面板数据控制时间和行业固定效应        xi: xtreg y x i.year i.industry, f ...
1. 如果不加firm fixed effects, 就不用xtreg, fe。直接xi:reg y x i.year i.industry 就可以了
2. 可以,但是一般year industry用dummy,id不用dummy,因为dummy越多效率越低

8
chaogaobao 发表于 2017-8-30 19:25:38
nightwings 发表于 2017-7-12 12:09
xtlogit是没有cluster选项的。如果要cluster by ID,用robust option就可以了,robust默认就是cluster by ID ...
你好,我看help xtlogit 中 fe 没有robust ?是我出错了吗?
FE_options                   Description
    ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    Model
      fe                         use fixed-effects estimator
      offset(varname)            include varname in model with coefficient constrained to 1
      constraints(constraints)   apply specified linear constraints
      collinear                  keep collinear variables

    SE
      vce(vcetype)               vcetype may be oim, bootstrap, or jackknife

9
黃河泉 在职认证  发表于 2017-9-1 11:00:28
chaogaobao 发表于 2017-8-30 19:25
你好,我看help xtlogit 中 fe 没有robust ?是我出错了吗?
FE_options                   Descriptio ...
没错,请试试 (help) clogit。
已有 1 人评分经验 论坛币 收起 理由
葫芦娃大王 + 1 + 1 精彩帖子

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

10
Coral__ 发表于 2020-1-9 14:56:05
黃河泉 发表于 2017-9-1 11:00
没错,请试试 (help) clogit。
您好,我也遇到了相似的问题,想请教一下是可以用clogit替代xtlogit吗?group那里应该填什么呢?

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

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2026-1-4 18:17