pcor.test: Test for zero partial association

Description Usage Arguments Value Author(s) See Also Examples

Description

Test for conditional independence between two variables, given the other ones, assuming a multivariate normal distribution.

Usage

1
pcor.test(r, q, n)

Arguments

r

a partial correlation coefficient, computed by pcor.

q

the number of variables in the conditioning set.

n

integer > 0, the sample size.

Value

tval

The Student's t-test statistic.

df

The degrees of freedom

pvalue

The P-value, assuming a two-sided alternative.

Author(s)

Giovanni M. Marchetti

See Also

pcor, shipley.test

Examples

1
2
3
## Are 2,3 independent given 1?
data(marks)
pcor.test(pcor(c(2,3,1), var(marks)), 1, n=88)

Example output

Loading required package: igraph

Attaching package: 'igraph'

The following objects are masked from 'package:stats':

    decompose, spectrum

The following object is masked from 'package:base':

    union


Attaching package: 'ggm'

The following object is masked from 'package:igraph':

    pa

$tval
[1] 4.528232

$df
[1] 85

$pvalue
[1] 1.923857e-05

ggm documentation built on March 26, 2020, 7:49 p.m.

Related to pcor.test in ggm...