rstack: Produces a Stacked Table With Correlations

Description Usage Arguments Details Value Note Author(s) References See Also Examples

Description

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.

Usage

1
	rstack(m)

Arguments

m

is a square matrix.

Details

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.

Value

An table or a data.frame containing the correlations for m.

Note

When using the function to correlate values of a variable with corresponding values at a different time will lead to an autocorrelation table.

Author(s)

Daniel Marcelino

References

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.

See Also

tolatex,rprob.

Examples

1
2
3
4
5
6
7

SciencePo documentation built on May 2, 2019, 5:53 p.m.