Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: a very basic question about 'correlate'


From   "Clive Nicholas" <[email protected]>
To   [email protected]
Subject   Re: st: a very basic question about 'correlate'
Date   Fri, 27 May 2005 03:28:48 +0100 (BST)

Kenley Barrett wrote:

> Apologies in advance for a very simple question: Does the "correlate"
> command give a "correlation coefficient"?

Yes, it does. You could have tried this simple test after -sysuse auto-:

. corr price mpg
(obs=74)

             |    price      mpg
-------------+------------------
       price |   1.0000
         mpg |  -0.4686   1.0000


. pwcorr price mpg

             |    price      mpg
-------------+------------------
       price |   1.0000
         mpg |  -0.4686   1.0000


CLIVE NICHOLAS        |t: 0(044)7903 397793
Politics              |e: [email protected]
Newcastle University  |http://www.ncl.ac.uk/geps

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



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index