powered by
Gives a correlation matrix and the probability of Ho for each correlation estimate
cormat(donnees, method = "spearman", sep = FALSE)
If sep = F (default) a list including:
The method used
Upper triangle, the correlations; lower triangle, the probability of Ho
If sep = T a list including:
The correlation matrix
The Ho probability matrix
a data frame of numerics
a string of characters among 'pearson', 'spearman' (default), 'kendall'
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.
cor, cor.test
cor
cor.test
cormat(longley) cormat(longley,sep=TRUE)
Run the code above in your browser using DataLab