Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

st: correlation between two variables panel data


From   biljana.dlab@bf.uzh.ch
To   statalist@hsphsun2.harvard.edu
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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index