Bookmark and Share

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

[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?



*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index