# partial.corr

From HH v3.1-39
by Richard Heiberger

##### partial correlations

The partial correlation of x and y conditioning on z is the ordinary correlation of the residuals from the regression of x on z and the regression of y on z.

- Keywords
- hplot

##### Usage

`partial.corr(vars, cond)`

##### Arguments

- vars
matrix of data.frame of all the variables to be correlated.

- cond
matrix of data.frame of all the variables to be conditioned on.

##### Value

matrix of partial correlations of the numeric variables in the argument
`vars`

conditioning on the numeric variables in `cond`

.

##### Examples

```
# NOT RUN {
if.R(r=
partial.corr(longley[,1:3], longley[,4:6])
,s=
partial.corr(longley.x[,1:3], longley.x[,4:6])
)
# }
```

*Documentation reproduced from package HH, version 3.1-39, License: GPL (>= 2)*

### Community examples

Looks like there are no examples yet.