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 at the end of May, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: RE: AW: correlation in one table


From   "Abhimanyu Arora" <abhimanyu.arora@student.kuleuven.be>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: AW: correlation in one table
Date   Mon, 19 Apr 2010 10:01:35 +0200

Hi Martin
Thanks very much indeed.
Kind regards
Abhimanyu

-----Original Message-----
From: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] On Behalf Of Martin Weiss
Sent: maandag 19 april 2010 9:39
To: statalist@hsphsun2.harvard.edu
Subject: st: AW: correlation in one table


<> 

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: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Abhimanyu Arora
Gesendet: Montag, 19. April 2010 09:24
An: statalist@hsphsun2.harvard.edu
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/


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