Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: generate a variable representing correlation


From   Nick Winter <[email protected]>
To   [email protected]
Subject   Re: st: generate a variable representing correlation
Date   Fri, 22 Feb 2008 15:45:42 -0500

The -egenmore- package adds many things to -egen-, including corr(), which calculates correlations (and covariances) between two variables.

To install:

. ssc install egenmore


Then it will be

. egenmore corrtc = corr(tfp,capital) , by(industry year)

--Nick Winter


Oliinik, Victoria wrote:

Dear statalisters,
Can anyone help me with the following?
For each of the 39 industries and 5 years, I need to generate a variable
representing correlation between TFP and capital and store it in my
dataset.

This doesn't seem to work with egen or gen commands.


Thanks in advance

Victoria
_____________________________________________
Victoria Oliinik
LICOS Centre for Institutions and Economic Performance
Katholieke Universiteit Leuven
Deberiotstraat 34 - bus 3511, B-3000 Leuven, Belgium

Office: 03.21
ph ++32 (0)16 32 45 51
fax ++32 (0)16 32 65 99
Website: http://www.econ.kuleuven.be/licos/

Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm


*
* 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/
--
--------------------------------------------------------------
Nicholas Winter                                 434.924.6994 t
Assistant Professor                             434.924.3359 f
Department of Politics                  [email protected] e
University of Virginia          faculty.virginia.edu/nwinter w
PO Box 400787, 100 Cabell Hall
Charlottesville, VA 22904

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