Learn R Programming

ccaPP (version 0.3.4)

diabetes: Diabetes data

Description

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

Usage

data(diabetes)

Arguments

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.

Examples

Run this code
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")

Run the code above in your browser using DataLab