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.
msrahman
Posts: 53
Joined: Wed Oct 31, 2012 2:32 pm

simple correlation coeficient

Unread post by msrahman »

Is it possible to calculate simple correlation coefficient( not autocorreltioan) and its SIGNIFICNCE LEVEL between two series in RATS? Thanks.
sincerely,
msrahman.
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: simple correlation coeficient

Unread post by TomDoan »

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.
Post Reply