楼主: YUZCP
36847 16

请问如何用STATA做邹检验 [推广有奖]

  • 0关注
  • 2粉丝

博士生

78%

还不是VIP/贵宾

-

威望
0
论坛币
938 个
通用积分
1.1444
学术水平
6 点
热心指数
5 点
信用等级
5 点
经验
9744 点
帖子
346
精华
0
在线时间
314 小时
注册时间
2006-2-8
最后登录
2024-4-14

相似文件 换一批

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

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

经管之家联合CDA

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

感谢您参与论坛问题回答

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

+2 论坛币

结构性检验。谢谢

二维码

扫码加我 拉你入群

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

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

关键词:Stata tata 如何用 结构性 检验 Stata

本帖被以下文库推荐

沙发
蓝色 发表于 2007-3-4 09:06:00 |只看作者 |坛友微信交流群

可以得,你得自己添加程序,

或者可以手动去计算。

使用道具

藤椅
陈彦达 发表于 2007-3-4 09:39:00 |只看作者 |坛友微信交流群
用Eviews更简单

使用道具

板凳
蓝色 发表于 2007-3-10 08:47:00 |只看作者 |坛友微信交流群

用stata你会知道chow test的原理

我原来从stata网站上找的

97164.pdf (190.49 KB)

使用道具

报纸
YUZCP 发表于 2007-3-17 21:14:00 |只看作者 |坛友微信交流群
谢谢

使用道具

地板
sillyfeng 发表于 2007-3-17 21:50:00 |只看作者 |坛友微信交流群
自己做两个回归就行了

使用道具

7
minixi 发表于 2007-3-17 22:36:00 |只看作者 |坛友微信交流群

李子奈教科书第二版p86-p87的学习笔记:

/* 1、 Chow 模型稳定性检验(lrtest) */
* 用似然比作chow检验,chow检验的零假设:无结构变化,小概率发生结果变化
* 估计前阶段模型
qui reg lnq lnx lnp0 lnp1 in 1/14
est store A
* 估计后阶段模型(1995-2001)
qui reg lnq lnx lnp0 lnp1 in 15/21
est store C
* 整个区间上的估计结果保存为All
qui reg lnq lnx lnp0 lnp1 in 1/21
est store All
* 用似然比检验检验结构没有发生变化的约束
lrtest (All)(A C),stats

/* 2、Chow 模型稳定性检验(F-test) */
* 用F-test作chow间断点检验检验模型稳定性,p86
* chow检验的零假设:无结构变化,小概率发生结果变化
* 估计前阶段模型
qui reg lnq lnx lnp0 lnp1 in 1/14
scalar n1=e(N)
scalar rss1=e(rss)
* 估计后阶段模型(1995-2001)
qui reg lnq lnx lnp0 lnp1 in 15/21
scalar n2=e(N)
scalar rss2=e(rss)
* 整个区间上的估计结果保存为All
qui reg lnq lnx lnp0 lnp1 in 1/21
scalar k=e(df_m)
scalar rssr=e(rss)
* 用F检验检验结构没有发生变化的约束
*计算和显示 F检验统计量p.85顶部公式,零假设:无结构变化
scalar f_test=(rssr-(rss1+rss2))/(k+1)/(rss1+rss2)*(n1+n2-2*(k+1))
dis f_test
* F统计量的临界概率
dis Ftail((k+1),(n1+n2-2*(k+1)),f_test)
* F统计量的临界值
dis invFtail((k+1),(n1+n2-2*(k+1)),0.05)

/* 3、F检验实现Chow预测检验检验模型的稳定性 */
*计算和显示 F检验统计量 ,p87,零假设:无结构变化
scalar ff_test=(rssr-rss1)/n2/(rss1)*(n1-k-1)
dis ff_test
* F统计量的临界概率
dis Ftail(n2,(n1-k-1),ff_test)
* F统计量的临界值
dis invFtail(n2,(n1-k-1),0.05)


eblog  金币 +1  金钱 +25  魅力 +5  经验 +30  奖励 2008-9-9 12:25:24
已有 1 人评分学术水平 热心指数 信用等级 收起 理由
日新少年 + 3 + 3 + 3 精彩帖子

总评分: 学术水平 + 3  热心指数 + 3  信用等级 + 3   查看全部评分

使用道具

8
csfox2005 发表于 2008-9-8 19:56:00 |只看作者 |坛友微信交流群
谢谢

使用道具

9
arlionn 在职认证  发表于 2008-9-9 08:44:00 |只看作者 |坛友微信交流群

http://www.stata.com/support/faqs/stat/chow3.html

http://www.stata.com/support/faqs/stat/chow.html

http://www.stata.com/support/faqs/stat/awreg.html

Test for a shift in regression coefficients                      (STB-17: sts7)
-------------------------------------------

        chow varlist [weight] [if exp] [in range] [, chow(sample-list)
                        noconstant current(varlist) detail exclude(varlist)
                        lags(#[,#[,...]]) preserve regress restrict(varlist)
                        nosample static(varlist) time(power) vartest


chow calculates the Chow and Farley-Hinich-McGuire tests for a shift
in regression coefficients


Options
-------

chow(sample-list) specifies the subsamples for the Chow test.

noconstant suppresses the constant.

current(varlist) names the time series variables whose contemporaneous
    values are to be included as regressors.

detail indicates that each subsample is to be tested separately.

exclude(varlist) excludes variables from the Chow test.

lags(#[,#[,...]) specifies the lags.

preserve preserves the original data set.

regress displays the Chow regression.

restrict(varlist) holds the coefficients of the variables in the
    varlist constant across the subsamples.

nosample suppresses the display of sample coverage information.

static(varlist) specifies the static variables.

time(power) indicates the function of time to use for a Farley-
    Hinich-McGuire test.  Instead of a number, you also may specify
    "exp", "ln", or "log".

vartest requests a test of the hypothesis that the error variance is
    equal across subsamples.


Examples
--------

        chow y x1 x2, chow(year>1975)

tests whether the coefficients of the regression of y on x1 and x2 change
after 1975.

        chow gnp money, chow(year>1982) lags(4) restrict(gnp)

tests whether the coefficients on four lags of money change after 1982.

Author
------
        Sean Becketti
        Stata Technical Bulletin

Also see
--------

    STB:  sts7 (STB-17)
On-line:  help for ts


eblog  金币 +1  金钱 +50  魅力 +10  经验 +50  奖励 2008-9-9 12:26:35
已有 1 人评分论坛币 学术水平 热心指数 信用等级 收起 理由
3878 + 5 + 2 + 2 + 2 精彩帖子

总评分: 论坛币 + 5  学术水平 + 2  热心指数 + 2  信用等级 + 2   查看全部评分

使用道具

10
jttzhll1 发表于 2010-6-27 21:02:45 |只看作者 |坛友微信交流群
谢谢 4# 蓝色

使用道具

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

本版微信群
加好友,备注jltj
拉您入交流群

京ICP备16021002-2号 京B2-20170662号 京公网安备 11010802022788号 论坛法律顾问:王进律师 知识产权保护声明   免责及隐私声明

GMT+8, 2024-5-1 19:12