| p_from_r | R Documentation |
Two-sided p values for a matrix of correlation coefficients, using the null distribution appropriate to the coefficient. Used by the false discovery rate criteria, which need a p value for every screened window.
p_from_r(r, n, cor_method = "pearson", df_adjust = 0)
r |
matrix or vector of correlation coefficients |
n |
number of observations |
cor_method |
"pearson", "spearman" or "kendall" |
df_adjust |
degrees of freedom to subtract beyond the usual two, used for partial correlations where a control variable is removed |
an object of the same shape as r, containing p values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.