pcor.test | R Documentation |
Test for conditional independence between two variables, given the other ones, assuming a multivariate normal distribution.
pcor.test(r, q, n)
r |
a partial correlation coefficient, computed by |
q |
the number of variables in the conditioning set. |
n |
integer > 0, the sample size. |
tval |
The Student's t-test statistic. |
df |
The degrees of freedom |
pvalue |
The P-value, assuming a two-sided alternative. |
Giovanni M. Marchetti
pcor
, shipley.test
## Are 2,3 independent given 1?
data(marks)
pcor.test(pcor(c(2,3,1), var(marks)), 1, n=88)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.