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: AW: correlation in one table
From
"Martin Weiss" <[email protected]>
To
<[email protected]>
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
*************
HTH
Martin
-----Ursprüngliche Nachricht-----
Von: [email protected]
[mailto:[email protected]] Im Auftrag von Abhimanyu Arora
Gesendet: Montag, 19. April 2010 09:24
An: [email protected]
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
Abhimanyu
*
* 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/
*
* 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/