load_eslmix: Gaussian mixture data

View source: R/load_eslmix.R

load_eslmixR Documentation

Gaussian mixture data

Description

Load the Gaussian mixture data from Hastie et al. (2009, Sec. 2.3.3).

Usage

load_eslmix()

Value

A list with the following components:

x

200 x 2 matrix of training predictors.

y

class variable; logical vector of 0s and 1s - 100 of each.

xnew

matrix 6831 x 2 of lattice points in predictor space.

prob

vector of 6831 probabilities (of class TRUE) at each lattice point.

marginal

marginal probability at each lattice point.

px1

69 lattice coordinates for x1.

px2

99 lattice values for x2 (69*99=6831).

means

20 x 2 matrix of the mixture centers, first ten for one class, next ten for the other.

Source

https://web.stanford.edu/~hastie/ElemStatLearn/datasets/mixture.example.info.txt

References

Trevor Hastie, Robert. Tibshirani, and Jerome Friedman. The Elements of Statistical Learning: Data Mining, Inference, and Prediction, Second Edition. Springer Series in Statistics. Springer-Verlag, 2009.

Examples

eslmix <- load_eslmix()
names(eslmix)

bgreenwell/treemisc documentation built on Oct. 26, 2022, 12:56 a.m.