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]

Re: st: table of correlations


From   Stas Kolenikov <skolenik@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: table of correlations
Date   Fri, 14 Jan 2011 18:05:04 -0600

Read on the -post- command, it will do the work for you.

On Fri, Jan 14, 2011 at 4:15 PM, Rodrigo Briceño <rjbriceno@gmail.com> wrote:
> 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
> rjbriceno@gmail.com
> MSN: jbric98@hotmail.com
> 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/
>



-- 
Stas Kolenikov, also found at http://stas.kolenikov.name
Small print: I use this email account for mailing lists only.

*
*   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