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/