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

st: RE: Covariance matrice.


From   "FEIVESON, ALAN H. (AL) (JSC-SK) (NASA)" <alan.h.feiveson@nasa.gov>
To   "'statalist@hsphsun2.harvard.edu'" <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Covariance matrice.
Date   Wed, 25 Aug 2004 09:31:01 -0500

Amadou - Do you mean the sample covariance between Q and the numbers in your
vector? If so, just put your Q-values in a variable called "Q", your
x-values in a variable called "x" (5 observations for both ) and then issue
the command. 

corr Q X,cov

Actually I suspect this is not what you are really asking. Perhaps you can
elucidate.


AL Feiveson


-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu]On Behalf Of
adiallo5@worldbank.org
Sent: Tuesday, August 24, 2004 11:18 AM
To: statalist@hsphsun2.harvard.edu
Subject: st: Covariance matrice.


Hi,

I have an income variable grouped into 5 categories (Q1 Q2 Q3 Q4 Q5) ie from
poorest to
richest and I want to compute its covariance with the following vector:

        |   0.1    |
        |   0.3    |
        |   0.5    |
X =  |   0.7    |
        |  0.9     |

How to do that into stata?
I would appreciate any help.
Thanks.
Amadou.


*
*   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/
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index