Our World Statistics Day conversations have been a great reminder of how much statistics can inform our lives. Do you have an example of how statistics has made a difference in your life? Share your story with the Community!
Choose Language Hide Translation Bar
Highlighted

Partial Correlation

I have four variables pp, ph, ngl & yield. Suppose I want to find out Partial Correlation between NGL and yield after removing the linear effect of PP and PH. In Base SAS I can find out by using the following given code.

/*BASE SAS Code*/
proc corr;
var ngl yld;
partial pp ph;
run;

But In JMP, When i go to Analyze -> Multivariate Methods -> Multivariate. I selected all the variables and click OK. From Hotspot button I get Partial correlation of all the variables with respect to all other variables. See below the output of JMP.

Partial Corr
pp ph ngl yld
pp . 0.1315 0.2028 0.2825
ph 0.1315 . -0.0309 0.2686
ngl 0.2028 -0.0309 . 0.1920
yld 0.2825 0.2686 0.1920 .

partialed with respect to all other variables

But I want to get partial correlation between ngl & yield after adjusting for pp & ph.

Please reply.
Thanks.
1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
mpb
Super User mpb
Super User

Re: Partial Correlation

Unless I misunderstand your question, from your output the partial correlation between ngl and yield after adjusting for pp and ph is 0.1920.

View solution in original post

2 REPLIES 2
Highlighted
mpb
Super User mpb
Super User

Re: Partial Correlation

Unless I misunderstand your question, from your output the partial correlation between ngl and yield after adjusting for pp and ph is 0.1920.

View solution in original post

Highlighted

Re: Partial Correlation

Thanks for the solution. Yes I checked it with BASE SAS result.
Article Labels

    There are no labels assigned to this post.