ez.r: r correlation

View source: R/stats.R

ez.rR Documentation

r correlation

Description

r correlation

Usage

ez.r(x, col = NULL, type = "pearson", print2scr = T)

Arguments

x

df or matrix

col

col included for calculation, ignored if x is not a df

type

"pearson" or "spearman"

print2scr

print attention message, if NA present in r matrix; no effect if there is no NA

Value

r matrix

Note

underlying uses rcorr, which uses pairwise deletion. Pairs with fewer than 2 non-missing values, or too small variance, have the r values set to NA
In the r matrix you get, you may get some NAs in the marix without warning)


jerryzhujian9/zmisc documentation built on March 9, 2024, 12:49 a.m.