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: table of correlations


From   Rodrigo Briceño <[email protected]>
To   [email protected]
Subject   st: table of correlations
Date   Fri, 14 Jan 2011 16:15:24 -0600

Hello Stata listers. First of all I must clarify that I already try to
solve this problem using mkcorr.
I'm using Stata 9.2 and windows XP. I'm applying the following command
to my data: by isin2, sort : correlate liq1 sap, where isin2 is the
identification number of each one of my time series. The results I get
when I apply this command is a list of tables with all the
correlations asked. What I would like is to collect all the 324
correlation coefficients to put them on a table, like this (as an
example):

ISIN2   rho
1         0.2356
2         0.2541
3         0.0123

I was thinking to put each coefficient as a scalar using locals:

local rho1 = r(rho)
estadd scalar rho1= `rho1'

but I don't know how to call back all the 324 together. If any of you
know some command or tip that could help me to build this table I will
appreciate your time.

Thanks.

-- 
Rodrigo Briceño
Economist
[email protected]
MSN: [email protected]
SKYPE: rbriceno1087

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