powered by
Test for conditional independence between two variables, given the other ones, assuming a multivariate normal distribution.
pcor.test(r, q, n)
The Student's t-test statistic.
The degrees of freedom
The P-value, assuming a two-sided alternative.
a partial correlation coefficient, computed by pcor.
pcor
the number of variables in the conditioning set.
integer > 0, the sample size.
Giovanni M. Marchetti
pcor, shipley.test
shipley.test
## Are 2,3 independent given 1? data(marks) pcor.test(pcor(c(2,3,1), var(marks)), 1, n=88)
Run the code above in your browser using DataLab