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: correlation between two variables panel data
From 
 
[email protected] 
To 
 
[email protected] 
Subject 
 
st: correlation between two variables panel data 
Date 
 
Sat, 6 Aug 2011 16:33:51 +0200 
Dear all,
I am using STATA 11 and have panel data and am trying to generate new 
correlation variable.
Namely, for about 45 industries I need to generate variable that 
represents correlation between CF and RD, by industry, and then store it 
between other variables in my data set.
In order to do that I did following:
I first installed egenmore:
. ssc install egenmore
the response was:
checking egenmore consistency and verifying not already installed...
all files already exist and are up to date.
then I sorted data according to industry id-number:
. sort ind_ID
and then I wanted to generate the correlation variable:
. egenmore corrCF_RD=corr(r_d,  C_F), by(ind_ID)
then the following error message showed up:
unrecognized command:  egenmore
what could be the problem?
Thanks.
Best,
Biljana
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/