Statalist The Stata Listserver

[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Testing constraints in a linear regression

From   "Clive Nicholas" <>
Subject   Re: st: Testing constraints in a linear regression
Date   Sat, 21 Jan 2006 22:10:31 -0000 (GMT)

Fanwell Kenala Bokosi wrote:

> I am estimating a model which is constrained. I am trying to test the
> constraints, but stata keeps giving me an error message.
> My model is
> Y = (ρ-1)Yt-1 + β (Xt-Xt-1) + β(1- ρ)Xt-1 + εi
> The stata command I am using is
> reg Y Yt-1  (Xt-Xt-1) Xt-1
> test Yt-1 * (Xt-Xt-1)= -(Xt-1)
> When I do that I am getting an error,
> I have about  more than one ((Xt-Xt-1), Xt-1 variables. Please help

Would Jeroen Weesie's -linest- help in this circumstance? You can download
it from SSC (or -findit linest-). Try it and see. (This is assuming you've
already tried -cnsreg-.) Hope that helps. :)

CLIVE NICHOLAS        |t: 0(044)7903 397793
Politics              |e:
Newcastle University  |

Whereever you go and whatever you do, just remember this. No matter how
many like you, admire you, love you or adore you, the number of people
turning up to your funeral will be largely determined by local weather

*   For searches and help try:

© Copyright 1996–2021 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index