Description Usage Arguments Value Author(s) See Also Examples
Calculate the correlations between constructs. Different type of correlations can be requested: PMC, Kendall tau rank correlation, Spearman rank correlation.
1 2 3 | constructCor(x, method=c("pearson", "kendall", "spearman"), trim=20,
index=FALSE, col.index=TRUE, digits=2, output=1,
upper=T)
|
x |
|
method |
A character string indicating which correlation coefficient
is to be computed. One of |
trim |
The number of characters a construct is trimmed to (default is
|
index |
Whether to print the number of the construct. |
col.index |
Logical. Whether to add an extra index column so the
column names are indexes instead of construct names. This option
renders a neater output as long construct names will stretch
the output (default is |
digits |
Numeric. Number of digits to round to (default is
|
output |
The type of output printed to the console. |
upper |
Whether to display upper triangle of correlation matrix only
(default is |
Prints results to the console and invisibly returns a matrix of construct correlations.
Mark Heckmann
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | ## Not run:
# three different types of correlations
constructCor(mackay1992)
constructCor(mackay1992, meth="kend")
constructCor(mackay1992, meth="spea")
# format output
constructCor(mackay1992, upper=F)
constructCor(mackay1992, col.index=F, trim=6)
constructCor(mackay1992, index=T, col.index=F, trim=6)
# save as object for further processing.
# no visible output.
r <- constructCor(mackay1992, trim=6, out=0)
r
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.