Description Usage Arguments Details Value Note Author(s) References See Also Examples
Pearson's product-moment coefficient is the well known degree to which two or more variables are linearly associated. In a two-dimensional table, the degree of correlation among the variables is quantified by the correlation coefficient.
1 | rstack(m)
|
m |
is a square matrix. |
The function generates a flatten table of correlations. Using it beside tolatex
will produce a latex-like correlation table. If necessary, typing ‘cor(t(x))’ will coerce ‘x’ to a properly square matrix format.
An table or a data.frame containing the correlations for m
.
When using the function to correlate values of a variable with corresponding values at a different time will lead to an autocorrelation table.
Daniel Marcelino
Agresti, A., and Finlay, B. (1997) Statistical methods for the social sciences.
Aldrich, John (1995) Correlations Genuine and Spurious in Pearson and Yule. Statistical Science, 10(4), 364–376.
Spiegel, M. R. (1992) Correlation Theory. in: Theory and Problems of Probability and Statistics, 2nd ed. New York: McGraw-Hill, pp. 294–323.
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.