Description Usage Arguments Details Value See Also
A function to generate correlation tables that can be easily transformed to APA tables.
1 2 |
data |
The data frame for which the correlations should be computed. Non-numerics are excluded from further processing |
apa |
logical, apa Should APA style be approximated, leading to a
table with an empty upper half. Default is to |
xlsx |
logical, shoudl an xlsx-file be produced? Default is to
|
xlsxName |
The name of the resulting xlsx-file, if |
diag |
The value that should be displayed in the first diagonal of
the resulting table, e. g. |
diag2 |
The value that should be displayed in the second diagonal
of the resulting table, e. g. |
round |
The number of digits that should be displayed. Is passed on
to |
... |
Other parameters passed on to |
This is a function that returns a table of correlations and, depending
on apa
, a table that is losely formatted as an apa table. Pearson
correlations (using cor
of all variables are computed. Their
signifcance levels are also reported, based on the function
cor.test
from the Hmisc
-package.
Returns a data frame with correlations. See Details.
cor
for the functon that computes the
correlation, cor.test
for the function that
computes the p-values, and write.xlsx
for
the function that writes the Exceltable.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.