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]

st: RE: How to display p value of one-sided t test?


From   "David Radwin" <dradwin@mprinc.com>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: How to display p value of one-sided t test?
Date   Mon, 11 Mar 2013 12:43:35 -0700 (PDT)

. 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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index