Flash Sale | 50% off
Get 50% off unlimited learning

sasLM (version 0.10.5)

Pcor.test: Partial Correlation test of multiple columns

Description

Testing partial correlation between many columns of data with Pearson method.

Usage

Pcor.test(Data, x, y)

Value

Row names show which columns are used for the test

Estimate

point estimate of correlation

Df

degree of freedom

t value

t value of the t distribution

Pr(>|t|)

probability with the t distribution

Arguments

Data

a numeric matrix or data.frame

x

names of columns to be tested

y

names of control columns

Author

Kyun-Seop Bae k@acr.kr

Details

It performs multiple partial correlation test. It uses "complete.obs" rows of x and y columns.

Examples

Run this code
Pcor.test(mtcars, c("mpg", "hp", "qsec"), c("drat", "wt"))

Run the code above in your browser using DataLab