In R, I have a dataset of many variables and based on correlation matrix I see that some of the variable are correlate with the others. For simplicity, let's assume that there are three variables $X, Y, Z$ that have high pairwise correlation coefficients. But it seems that information about the variable $Y$ is already included in the variable $Z$. How can I check (in R or in Python) if $X$ is dependent on $Y$ given $Z$?
Asked
Active
Viewed 862 times
4
StatsStudent
- 11,444
user2598356
- 329
Rthat iscoplot. Example in https://stats.stackexchange.com/questions/203494/can-i-analyze-or-model-a-conditional-correlation/368228#368228 – kjetil b halvorsen Oct 19 '18 at 15:12