Last chance! 50% off unlimited learning
Sale ends in
Correlation matrix with p-values
Cor(X, stars=TRUE, dec=4, p.level=0.05, ...)
Cor2(X, dec=4, p.level=0.05)
Matrix or data frame with values
Replaces p-values with stars if it not greater than 'p.level'
Decimal point
P-level
Arguments to 'cor.test()'
'Cor()' calculates correlation matrix with p-values.
'Cor2()' is another (faster) variant of correlation matrix with p-values based on F-statistic. Shows significances in the upper triagle. Uses Pearson correlation only but much faster than 'Cor()'.
# NOT RUN {
Cor(longley, dec=2)
Cor2(longley, dec=2)
# }
Run the code above in your browser using DataLab