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

Re: st: RE: Estout and predicted signs - new questions


From   "Herve STOLOWY" <[email protected]>
To   <[email protected]>
Subject   Re: st: RE: Estout and predicted signs - new questions
Date   Thu, 03 Mar 2005 18:01:03 +0100

Dear Ben:

I now have a clearer view. It worked with a basic example:

regress y var1 var2 var3.

I refer to a problem I mentioned earlier and which was solved by the second solution you proposed originally (the one with the program prsign, eclass): in my estout output, I want to have the results of two regressions:

regress y var1 var2
regress y var1 var2 var3.

In the predicted signs column, I need to have the three variables var1, var2 and var3, although the first model only uses var1 and var2.

It seems to me that your latest solution (with tempname b) is related to only one model.

Best regards

Herv�


***********************************************************
Professeur/Professor
Coordinateur du D�partement/Head of Department
HEC Paris
D�partement Comptabilit� Contr�le de gestion / Dept of Accounting and Management Control
1, rue de la Liberation
78351 - Jouy-en-Josas
France
Tel: +33 1 39 67 94 42 - Fax: +33 1 39 67 70 86
[email protected]
http://campus.hec.fr/profs/stolowy/perso/home.htm
>>> [email protected] 03/03/05 10:02 AM >>>
Herv�, I would do something like the following (this 
answers both your questions):

  sysuse auto
  regress price mpg weight foreign
  estimates store model1
  tempname b
  matrix `b' = e(b)
  matrix `b'[1,1] = -999   //neg. sign for mpg
  matrix `b'[1,2] = +999   //pos. sign for weight
  matrix `b'[1,3] = .z     //no sign for foreign
  matrix `b'[1,4] = 998    //? for _cons
  eret2 matrix signs = `b'
  estimates store pred
  estout pred model1, cells("signs(pat(1 0)) b(pat(0))") ///
    substitute(-999 - 999 + 998 ?)

ben

> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of 
> Herve STOLOWY
> Sent: Wednesday, March 02, 2005 7:44 PM
> To: [email protected]
> Subject: st: Estout and predicted signs - new questions
> 
> 
> Dear All:
> 
> A few days ago I raised a question concerning predicted signs 
> with -estout- and Ben Jann found the solution.
> 
> I now have two other related questions.
> 
> 1 - Signs different from + and -
> 
> I would like to know if it's possible to get a more complex 
> stucture of predicted signs.
> 
> Example:
> 
> var1: sign +
> var2: sign -
> var3: no sign (because it's a control variable, I don't want 
> to display a sign)
> var4: label "?"  (concerning the constant, I often see in 
> published articles a question mark as a predicted sign).
> 
> 2 - Column heading for the predicted signs
> 
> In the table I get, below the column title "Predicted signs", 
> I have a "b" (because -estout- thinks the column includes 
> coefficients). 
> 
> Is there a way to have a blank instead of "b"?
> 
> For your information, my command is the following:
> 
> estout signs4 m15 m16 m17 using estout_table7, replace  
> substitute(-999.000 - 999.000 +) cells ("b(fmt(%9.3f)) 
> p(fmt(%9.3f) pattern(0))") stats (N F p r2 r2_a, fmt(%9.0f 
> %9.3f %9.3f %9.3f %9.3f) labels("Number of observations" "F" 
> "Prob>F" "R-square" "Adjusted R-square")) label   
> varlabels(_cons Constant, elist(divergence1 
> "`=char(13)'Control variables"))
> 
> As last time, I am sorry to ask more and more to -estout-.
> 
> Best regards
> 
> Herv� Stolowy
> 
> ***********************************************************
> Professeur/Professor
> Coordinateur du D�partement/Head of Department
> HEC Paris
> D�partement Comptabilit� Contr�le de gestion / Dept of 
> Accounting and Management Control
> 1, rue de la Liberation
> 78351 - Jouy-en-Josas
> France
> Tel: +33 1 39 67 94 42 - Fax: +33 1 39 67 70 86
> [email protected]
> http://campus.hec.fr/profs/stolowy/perso/home.htm
> 
> *
> *   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/
> 

*
*   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/


*
*   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