cormat {pgirmess}R Documentation

Gives a correlation matrix and the probability of Ho for each correlation

Description

Gives a correlation matrix and the probability of Ho for each correlation estimate

Usage

cormat(donnees, method = "spearman", sep = FALSE)

Arguments

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)

Details

Wrapper for 'cor' and 'cor.test'. The results can be given in one or two matrices.

Value

If sep = F (default) a list including:

method The method used
prob.cor Upper triangle, the correlations; lower triangle, the probability of Ho
method The method used
coef.estimates The correlation matrix
p.value The Ho probability matrix

Author(s)

Patrick Giraudoux <pgiraudo@univ-fcomte.fr>

See Also

cor, cor.test

Examples

cormat(longley)
cormat(longley,sep=TRUE)

[Package pgirmess version 1.3.7 Index]