. quietly ttest X1=X2
. display r(p_u)
David
--
David Radwin
Senior Research Associate
MPR Associates, Inc.
2150 Shattuck Ave., Suite 800
Berkeley, CA 94704
Phone: 510-849-4942
Fax: 510-849-0794
www.mprinc.com
> -----Original Message-----
> From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-
> statalist@hsphsun2.harvard.edu] On Behalf Of Xixi Lin
> Sent: Monday, March 11, 2013 12:21 PM
> To: statalist
> Subject: st: How to display p value of one-sided t test?
>
> Hi,
>
> I know it seems to be a very simple question, but I really want to
> know how to display the p value of one-sided t test.
>
> After running ttest X1=X2, it gives p values for T<t, |T|>|t|, and
> T>t, how can I display p value for T>t only? Thanks for the help.
>
> Best,
> Xixi Lin
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/