Learn R Programming

weightedCL (version 0.5)

sleep: Infant sleep status data

Description

The sleep data consist of sleep state measurements of a newborn infant together with his heart rate and temperature sampled every 30 seconds. The sleep states are classified as: (1) quiet sleep, (2) indeterminate sleep, (3) active sleep, (4) awake. The total number of observations is equal to 1024 and the objective is to predict the sleep state based on covariate information.

Usage

data(sleep)

Arguments

Format

A data frame with 1024 observations on the following 3 variables:

heartrate

Heart rate.

sleep

An ordinal time series in the sense that the response increases from awake to active sleep, i.e., (4) < (1) < (2) < (3).

temperature

Temperature

Examples

Run this code
data(sleep)

Run the code above in your browser using DataLab