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 on April 23, and its replacement, is already up and running.

[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–2015 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index