Discussion:
Proc corr and confidence intervals
(too old to reply)
Ram .
2005-05-02 07:17:20 UTC
Permalink
Dear SAS-ers,

I am trying to get correlation between variables using proc corr. The
code that I
use is the following:

proc corr data=x3;
var x1-x4;
run;

I need help with two questions:

1) I would like to know if you can tell me how to change the above code so
that Prob > |r| under H0: Rho=0 is reported at 95% and 99% confidence
intervals? What is the default confidence interval?

2) How can I output the Pearson Correlation Coefficients onto a datset?
Thanks,
-Ram
Agustin Calatroni
2005-05-02 14:00:45 UTC
Permalink
Ram,

Again you should look at the options from proc corr at
http://support.sas.com/onlinedoc/912

proc corr data=x3 outp=pcorr fisher(alpha=0.01);
var x1-x4;
run;

HTH,

-- Agustin Calatroni

-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-***@LISTSERV.UGA.EDU] On Behalf Of Ram .
Sent: Monday, May 02, 2005 3:17 AM
To: SAS-***@LISTSERV.UGA.EDU
Subject: Proc corr and confidence intervals

Dear SAS-ers,

I am trying to get correlation between variables using proc corr. The code
that I use is the following:

proc corr data=x3;
var x1-x4;
run;

I need help with two questions:

1) I would like to know if you can tell me how to change the above code so
that Prob > |r| under H0: Rho=0 is reported at 95% and 99% confidence
intervals? What is the default confidence interval?

2) How can I output the Pearson Correlation Coefficients onto a datset?
Thanks,
-Ram

Loading...