Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: Output table with means pvalues for difference in means
From 
 
John Luke Gallup <[email protected]> 
To 
 
[email protected] 
Subject 
 
Re: st: Output table with means pvalues for difference in means 
Date 
 
Sat, 16 Jun 2012 11:12:49 -0700 
I forgot to say that -frmttable- is distributed as part of the -outreg- program from SSC.  See -help frmttable- after installing -outreg-.
John
On Jun 13, 2012, at 10:32 AM, Swanquist, Quinn Thomas wrote:
> Statalisters,
> 
> I am trying to output a table (into txt, word, or excel) that shows the means for variables in two subsamples as well as the pvalue from the ttest of difference in means. Is there a command similar to outreg2 that will do this. 
> 
> At the end of the day this is how I need the data to look:
> 
> 	Sample1mean	 Sample2mean	 Difference 	 (p-value) 
> v2 	 0.0903		 0.0994 		 (0.0091)	0.00
> v1	 145.9465	 66.3245 	 79.6220 	0.00
> 
> Quinn Swanquist
> [email protected]
> 
> 
> 
> -----Original Message-----
> From: [email protected] [mailto:[email protected]] On Behalf Of Nick Cox
> Sent: Wednesday, June 13, 2012 1:09 PM
> To: '[email protected]'
> Subject: st: RE: Syntax for trimming distribution tail In xtabond2
> 
> There is no context here. But even assuming that r(p1) and r(p99) are available from some previous command, the quote characters here are incorrect -- you would need left single quotes as opening delimiters -- and one parenthesis is unmatched. 
> 
> ... if inrange(y, `r(p1)',`r(p99)')
> 
> is more likely to be what you have in mind. 
> 
> This is not to be construed as supporting trimming distribution tails, in my view a horrible method.  
> 
> Nick 
> [email protected] 
> 
> Jason Hecht
> 
> Apparently the following syntax that worked in xtabond did not work in xtabond2:
> 
> xtabond y l.x1 l.x2 l.x3 if inrange(y, 'r(p1','r(p99)'), noconstant
> 
> 
> *
> *   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/