Description Usage Arguments Value See Also Examples

Compute arbitrary `k`

th order partial correlations using recursion.
This implementation is very inefficient.

1 |

`S` |
A numeric correlation matrix |

`z` |
A integer vector of indices of the variables to condition on. I.e.
length(z) is the order of the partial correlations. If |

A numeric matrix of the same size as the correlation matrix
with the partial correlations given the variables indexed by `z`

.
`NaN`

are returned in the rows and columns of the conditioned
variables.

1 2 3 4 5 | ```
X <- createData(6, 20)
Y <- createData(6, 20)
Z <- createData(6, 20)
S <- cor(X)
arbitraryOrderCorrelation(S, z = c(2, 3, 5))
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.