Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

ESL.mixture

Mixture example from "Elements of Statistical Learning"


Description

A list with training data and other details for the mixture example

Usage

data(ESL.mixture)

Format

This list contains the following elements:

x

a 200x2 matrix of predictors.

y

a 200 vector of y values taking values 0 or 1.

xnew

a 6831x2 matrix of prediction points, on a 69x99 grid.

prob

a vector of 6831 probabilities - the true probabilities of a 1 at each point in xnew.

marginal

the marginal distribution of the predictors t each point in xnew.

px1

grid values for first coordinate in xnew.

px2

grid values for second coordinate in xnew.

means

a 20 x 2 matrix of means used in the generation of these data.

Source

"Elements of Statistical Learning (second edition)", Hastie, T., Tibshirani, R. and Friedman, J. (2009), Springer, New York. http://www.stanford.edu/~hastie/ElemStatLearn


mda

Mixture and Flexible Discriminant Analysis

v0.5-2
GPL-2
Authors
S original by Trevor Hastie & Robert Tibshirani. Original R port by Friedrich Leisch, Kurt Hornik and Brian D. Ripley. Balasubramanian Narasimhan has contributed to the upgrading of the code.
Initial release
2020-06-26

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.