Description Usage Arguments Value Examples
Given a data matrix, this function computes the configuration matrix for the corresponding dataset. You'll typically won't need to call this function directly, but should use compute.config.matrices() instead, as it will make determining partial RV coefficients, p-values and confidence intervals easier later on.
1 2 | compute.config.matrix(x, similarity_fun = inner.product, center = TRUE,
mod.rv = TRUE)
|
x |
Data matrix. |
similarity_fun |
A function pointer to the similarity function to be used (default=inner.product). |
center |
A boolean indicating whether centering should be used (default=TRUE). |
mod.rv |
A boolean indicating whether the modified RV coefficient should be used (default=TRUE). |
A configuration matrix.
1 2 3 4 5 6 7 8 | set.seed(2)
n = 100
p = 100
x1 = matrix(rnorm(n*p), n, p)
x2 = x1 + matrix(rnorm(n*p), n, p)
S1 = compute.config.matrix(x1)
S2 = compute.config.matrix(x1)
rv.coef(S1, S2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.