Description Usage Arguments Details Examples
fancyCorr
creates nicely-formatted correlation matrices.
1 2 3 |
data |
Data frame containing the variables to be included in the matrix. |
digits |
The number of decimals to which the correlation coefficeents and standard deviations (if applicable) should be printed. Defaults to 2. |
p.digits |
The number of decimals to which the p-values should be printed. Defaults to 3. |
listwise |
Logical; should all rows containing missing data be removed? Defaults to TRUE. |
p.adj |
Logical; should the p-values be adjusted for multiple comparisons? Defaults to FALSE. |
sd.on.diag |
Logical; should the diagonal be replaced with standard deviations? Defaults to TRUE. |
p.on.upper |
Should p-values for the correlations be printed on the upper triangle? Defaults to TRUE. |
stars |
Should statistically significant correlation coefficients be starred? Defaults to FALSE. |
star.thresholds |
A vector of three values corresponding to p-value thresholds that should receive one, two, or three stars. Only operative if stars=TRUE. Defaults to c(.05, .01, .001). |
This function creates correlation matrices. Created as a mercy to my PSYC 5410 students.
1 2 3 4 5 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.