simple correlation coeficient

Use this forum to post questions about syntax problems or general programming issues. Questions on implementing a particular aspect of econometrics should go in "Econometrics Issues" below.

simple correlation coeficient

Postby msrahman » Thu Dec 13, 2012 5:43 pm

Is it possible to calculate simple correlation coefficient( not autocorreltioan) and its SIGNIFICNCE LEVEL between two series in RATS? Thanks.
sincerely,
msrahman.
msrahman
 
Posts: 12
Joined: Wed Oct 31, 2012 2:32 pm

Re: simple correlation coeficient

Postby TomDoan » Sat Dec 15, 2012 11:32 am

msrahman wrote:Is it possible to calculate simple correlation coefficient( not autocorreltioan) and its SIGNIFICNCE LEVEL between two series in RATS? Thanks.
sincerely,
msrahman.


you can compute it in many ways. For instance:

cmom(corr)
# x y
disp %cmom(1,2)

As to the significance, what assumptions do you want to make? The standard asymptotics are that sqrt(%nobs)*rho~N(0,1) under the null of no correlation. You could also look at the F-statistic from a LINREG to Y on CONSTANT and X (or X on CONSTANT and Y) which will give a similar, but not identical value.
TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm


Return to Help With Programming

Who is online

Users browsing this forum: No registered users and 0 guests