Description Usage Format Source Examples
Subset of the diabetes data from Andrews & Herzberg (1985).
1 |
A list with components x
and y
. Both components are matrices
with observations on different variables for the same n = 76 persons.
Component x
is a matrix containing the following p = 2 variables.
RelativeWeight
relative weight.
PlasmaGlucose
fasting plasma glucose.
Component y
is a matrix containing the following q = 3 variables.
GlucoseIntolerance
glucose intolerance.
InsulinResponse
insulin response to oral glucose.
InsulinResistance
insulin resistance.
Andrews, D.F. and Herzberg, A.M. (1985) Data. Springer-Verlag. Page 215.
1 2 3 4 5 6 7 8 9 10 | data("diabetes")
x <- diabetes$x
y <- diabetes$y
## Spearman correlation
maxCorGrid(x, y, method = "spearman")
maxCorGrid(x, y, method = "spearman", consistent = TRUE)
## Pearson correlation
maxCorGrid(x, y, method = "pearson")
|
Loading required package: parallel
Loading required package: pcaPP
Loading required package: robustbase
Call:
maxCorGrid(x = x, y = y, method = "spearman")
Maximum correlation:
[1] 0.5346995
Call:
maxCorGrid(x = x, y = y, method = "spearman", consistent = TRUE)
Maximum correlation:
[1] 0.5526498
Call:
maxCorGrid(x = x, y = y, method = "pearson")
Maximum correlation:
[1] 0.4887636
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.