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]

st: RE: rolling correlation help


From   Nick Cox <n.j.cox@durham.ac.uk>
To   "'statalist@hsphsun2.harvard.edu'" <statalist@hsphsun2.harvard.edu>
Subject   st: RE: rolling correlation help
Date   Wed, 16 Feb 2011 18:32:00 +0000

I think you'll need to -merge- it back with the original dataset then. 

Nick 
n.j.cox@durham.ac.uk 

Emma Wetten

I am very new to Stata and am struggling to do a rolling correlation.
I am not sure how to keep the results along with the data I already
have.

Using clear, as below, seems to remove my data and replace it with the
rolling correlation results.  I want to keep the resulting
correlation, but along with the data already in use.  Does that make
sense?
rolling, window(65) clear: correlate var1 var2

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