Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Variable equal to correlations per period & per agent


From   "Miguel Angel Duran Munoz" <[email protected]>
To   [email protected]
Subject   st: Variable equal to correlations per period & per agent
Date   Mon, 27 May 2013 21:58:05 +0200 (CEST)

Hi, Statalisters. I have a few files with panel data structure. In each of
these files I have two variables, say x and y.

For each of those files I want to generate, first, a variable that is
equal to the correlation coefficient between x and y per period (and
another variable that is equal to the p-values of the coefficients).

Second, a variable that is equal to the correlation coefficient between x
and y per agent (and another one that is equal to the p-values of the
coefficients).

Does anyone know whether there is a shortcut to do this so that I do not
have to generate those two variables manually? Thanks in advance.

Miguel.

*
*   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index