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

Re: st: Constrained estimation, simultaneous for two seperate groups?


From   "Scott Merryman" <smerryman@kc.rr.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   Re: st: Constrained estimation, simultaneous for two seperate groups?
Date   Fri, 6 Dec 2002 20:18:28 -0600

----- Original Message -----
>   The problem is you only care about the one constrained
> parameter on X1.  But you get two estimated coefficients  (male and female)
> for all the unconstrained independent variables which number in the hundreds.
> Yea, that's some ugly output.  Stata can't guess at which parameter you really
> care about so it gives them all to you.
>
If all you care about is the values for X1 you could use quietly (see [P]
quietly) to suppress the output of regress and then use outreg (findit outreg)
to pull out the values for X1.   Outreg creates a text file of the output you
desire that can be easily formatted into tables.   Something like:

qui reg y x1 - x1000
outreg x1 using c:/stata/name.txt

Or if you just want a quick inspection of the coefficient and standard error for
X1 on the screen you could use display.

qui reg y x1 - x1000
disp _b[x1] "   " _se[x1]

Scott


*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index