Learn R Programming

SIS (version 0.6)

heart.data: Dataset for SIS

Description

South African Heart Disease dataset used to test SIS algorithm

Usage

data(heart.data)

Arguments

References

Hastie, T., Tibshirani, R., and Friedman, J. (2001) Elements of Statistical Learning; Data Mining, Inference, and Prediction Springer-Verlag, New York.

Examples

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

Run the code above in your browser using DataLab