pcor | R Documentation |
Partial correlation between x and y, after having adjusted both for z.
pcor(x, y, z, alpha = 0.05)
x |
A numeric vector. |
y |
A numeric vector. |
z |
A data frame, which can contain characters or factors. |
alpha |
Type-I error for the confidence interval (CI).
Default is |
The partial correlation, and the lower and upper bounds of its CI.
pcor(iris[[1]], iris[[2]], iris[-(1:2)])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.