diabetes: Diabetes data

Description Usage Format Source Examples

Description

Subset of the diabetes data from Andrews & Herzberg (1985).

Usage

1

Format

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.

Source

Andrews, D.F. and Herzberg, A.M. (1985) Data. Springer-Verlag. Page 215.

Examples

 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")

Example output

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

ccaPP documentation built on Dec. 9, 2019, 5:08 p.m.