Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: re: constraints


From   Kit Baum <[email protected]>
To   [email protected]
Subject   st: re: constraints
Date   Tue, 28 Jun 2005 18:45:32 -0400

Although cnsreg is useful, it is hardly necessary for Vidya's problem:

"I am trying to estimate an equation similar to this -

constraint define 1 L.wpi+L2.wpi+L3.wpi=1
cnsreg wpi L.wpi L2.wpi L3.wpi L.ygapm L2.ygapm sswpi L.sswpi, constraint(1)"

This constraint may be rewritten as b(L3) = 1-b(L)-b(L2) and merely substituted into the equation,

(wpi - L.wpi) regressed on (L.wpi-L3.wpi), (L2.wpi-L3.wpi) and the rest

which you can estimate with regress, robust.

If you want the coefficient on L3.wpi, calculate it via lincom.

Kit

Kit Baum, Boston College Economics
http://ideas.repec.org/e/pba1.html

*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/




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