heart.data {SIS} | R Documentation |
South African Heart Disease dataset used to test SIS
algorithm
data(heart.data)
A dataset with 462 observations on 9 variables and a binary response.
Hastie, T., Tibshirani, R., and Friedman, J. (2001) Elements of Statistical Learning; Data Mining, Inference, and Prediction Springer-Verlag, New York.
data(heart.data) attach(heart.data) n=length(y) p=dim(x)[2] set.seed(0) trainset=sample(1:n,floor(n*2/3)) testset=setdiff(1:n,trainset) traindata=list(x=x[trainset,],y=y[trainset]) fit <- SIS(traindata, family=binomial(), xtune=x[testset,], ytune=y[testset]) detach(heart.data)