cormat | R Documentation |
Gives a correlation matrix and the probability of Ho for each correlation estimate
cormat(donnees, method = "spearman", sep = FALSE)
donnees |
a data frame of numerics |
method |
a string of characters among 'pearson', 'spearman' (default), 'kendall' |
sep |
If true, gives the results in two matrices (default = F) |
Wrapper for 'cor' and 'cor.test'. The results can be given in one or two matrices.
If sep = F (default) a list including:
method |
The method used |
prob.cor |
Upper triangle, the correlations; lower triangle, the probability of Ho |
If sep = T a list including:
method |
The method used |
coef.estimates |
The correlation matrix |
p.value |
The Ho probability matrix |
cor
, cor.test
cormat(longley)
cormat(longley,sep=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.