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: rolling correlation help
From
Emma Wetten <[email protected]>
To
[email protected]
Subject
st: rolling correlation help
Date
Wed, 16 Feb 2011 11:08:26 -0700
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
Thanks,
Emma
*
* 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/