Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: AW: esttab - parentheses around semean


From   Miranda Kim <mk@mrc.soton.ac.uk>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: AW: esttab - parentheses around semean
Date   Thu, 25 Feb 2010 13:43:22 +0000

Thank you Martin,
I now realise it must be due to the fact that I am exporting it to excel and using the "plain" option, as in:
sysuse auto, clear
estpost tabstat price, stat(mean semean)
esttab . using test.csv, replace /*
*/ cells(`"mean semean(par("(" ")")) count"') /*
*/ nonum noobs plain
Do you know if there is a way around this?
Many thanks for your help,
Miranda

Martin Weiss wrote:
<>

Your first suggestion leads to this:


---------------------------------------------------
mean semean count
---------------------------------------------------
price 6165.257 (342.8719) ---------------------------------------------------


*************
sysuse auto, clear
estpost tabstat price, stat(mean semean)
esttab ., /* */ cells(`"mean semean(par("(" ")")) count"') /* */ nonum noobs
*************


Isn`t that what you want?


HTH
Martin


-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Miranda Kim
Gesendet: Donnerstag, 25. Februar 2010 13:01
An: statalist@hsphsun2.harvard.edu
Betreff: st: esttab - parentheses around semean

Hello,
I am trying to construct a table resulting from estpost tabstat using esttab, and want to put parenthesis around the SE, but cannot work out the correct syntax for this suboption.
I have tried:
cells(`"mean semean(par("(" ")")) count"')
or
cells("mean semean(par(( ))) count")
but neither of these did the trick
On the other hand
cells("mean semean(par({ })) count ")
put curly brackets around it, but this is not what I want ideally...

Many thanks for your help
Miranda

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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   |   Site index