Skip to content

arlionn/chowtest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chowtest

chowtest performs Chow test

Example

. sysuse auto, clear
(1978 Automobile Data)

. chowtest price wei mpg, group(foreign)

Chow's Structural Change Test:
  Ho: no Structural Change
  Chow Test =  13.16        P-Value > F(3 , 68) = 0.0000

. chowtest price wei mpg, group(foreign) restrict(headroom)

Chow's Structural Change Test:
  Ho: no Structural Change
  Chow Test =  12.42        P-Value > F(3 , 67) = 0.0000

. chowtest price wei mpg, group(foreign) het

Chow's Structural Change Test:
  Ho: no Structural Change
  Chow Test =  24.27        P-Value > F(3 , 68) = 0.0000

. chowtest price wei mpg, group(foreign) detail

      Source |       SS           df       MS      Number of obs   =        74
-------------+----------------------------------   F(5, 68)        =     16.82
       Model |   351163805         5  70232760.9   Prob > F        =    0.0000
    Residual |   283901591        68   4175023.4   R-squared       =    0.5530
-------------+----------------------------------   Adj R-squared   =    0.5201
       Total |   635065396        73  8699525.97   Root MSE        =    2043.3

----------------------------------------------------------------------------------
           price |      Coef.   Std. Err.      t    P>|t|     [95% Conf. Interval]
-----------------+----------------------------------------------------------------
          weight |      4.415      0.853     5.18   0.000        2.713       6.117
             mpg |    237.691    125.038     1.90   0.062      -11.819     487.201
                 |
         foreign |
        Foreign  |   8219.603   7265.713     1.13   0.262    -6278.902   22718.108
                 |
foreign#c.weight |
        Foreign  |      0.741      1.648     0.45   0.654       -2.547       4.028
                 |
   foreign#c.mpg |
        Foreign  |   -257.468    155.426    -1.66   0.102     -567.616      52.679
                 |
           _cons |  -1.33e+04   5149.648    -2.58   0.012    -2.36e+04   -3009.481
----------------------------------------------------------------------------------

 ( 1)  1.foreign = 0
 ( 2)  1.foreign#c.weight = 0
 ( 3)  1.foreign#c.mpg = 0

       F(  3,    68) =   13.16
            Prob > F =    0.0000

Chow's Structural Change Test:
  Ho: no Structural Change
  Chow Test =  13.16        P-Value > F(3 , 68) = 0.0000

About

chowtest performs Chow test

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published