Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: st: FW: comparing xtregar coefficients across models

From   Lopa Chakraborti <>
To   "" <>
Subject   RE: st: FW: comparing xtregar coefficients across models
Date   Sat, 26 Feb 2011 08:09:18 -0500

Thanks much for your advice. I actually came across this example on suest. But when I try to run suest after xtregar it gives me the error message that score variables are not available from my run the model with score option. I am afraid I need some advice on whether score option is available for xtregar.
many thanks
From: [] On Behalf Of Christopher Baum []
Sent: Saturday, February 26, 2011 6:46 AM
Subject: Re: st: FW: comparing xtregar coefficients across models

On Feb 26, 2011, at 2:33 AM, Lopa wrote:

> The problem was that I was trying to test the equality of the two t-stats. Instead, I needed to use the coefficients generated by the two models for the test command.
> Run model 1.
> Save the beta in a scalar as:
> . scalar b_lagseaavgwqfoia04avg3=_b[lagseaavgwqfoia04avg3]
> Run model 2.
> Run test as:
> . test _b[pastyearseaavgwq]=b_lagseaavgwqfoia04avg3

This makes no sense, and does not address the underlying problem of statistical inference. You are testing an estimated coefficient from the second model against a fixed number. That test assumes that the number from the first model is your hypothesized value of the coefficient, and completely ignores the sampling error associated with that coefficient estimate. The test you have run would make sense if the fixed number was some theory's prediction about that coefficient.

I don't know if -suest- works in your context, but here is a valid test of a similar hypothesis with -regress-:

sysuse auto,clear
qui reg price mpg turn if foreign
est sto f
qui reg price mpg turn if !foreign
est sto d
suest f d
test [f_mean]turn = [d_mean]turn

Kit Baum   |   Boston College Economics & DIW Berlin   |
                              An Introduction to Stata Programming  |
   An Introduction to Modern Econometrics Using Stata  |

*   For searches and help try:

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index