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: AW: correlation in one table

From   "Martin Weiss" <>
To   <>
Subject   st: AW: correlation in one table
Date   Mon, 19 Apr 2010 09:38:34 +0200


Substitute your year for "foreign":

sysuse auto, clear
capture which estout
if _rc ssc install estout

eststo clear
bys foreign: eststo: estpost corr weight length, listwise
esttab est1 est2, not mtitles


-----Ursprüngliche Nachricht-----
[] Im Auftrag von Abhimanyu Arora
Gesendet: Montag, 19. April 2010 09:24
Betreff: st: correlation in one table

Dear statalist
I have 3 variables, year, A and B. Is it possible to obtain a simple table
with years in the rows and column being corr(A,B)? (Basically output of by
year:corr A B in a table)  
Thanks and regards

*   For searches and help try:

*   For searches and help try:

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