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" <stolowy@hec.fr>
To   <statalist@hsphsun2.harvard.edu>
Subject   Re: st: RE: Estout and predicted signs - new questions
Date   Thu, 03 Mar 2005 17:44:33 +0100

Dear Ben:

Sorry again but could you disregard my previous e-mail. I simply had forgotten one variable. I try again.

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
stolowy@hec.fr
http://campus.hec.fr/profs/stolowy/perso/home.htm
>>> ben.jann@soz.gess.ethz.ch 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: owner-statalist@hsphsun2.harvard.edu 
> [mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of 
> Herve STOLOWY
> Sent: Wednesday, March 02, 2005 7:44 PM
> To: statalist@hsphsun2.harvard.edu
> 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
> stolowy@hec.fr
> 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index