heart.data(SIS)
heart.data()所属R语言包:SIS
Dataset for SIS
数据集的SIS
译者:生物统计家园网 机器人LoveR
描述----------Description----------
South African Heart Disease dataset used to test SIS algorithm
南非心脏病数据集用于测试SIS算法
用法----------Usage----------
data(heart.data)
格式----------Format----------
A dataset with 462 observations on 9 variables and a binary response.
462观察变量和一个二进制响应的数据集。
xx contains 9 columns of the following variables: sbp (systolic blood pressure); tobacco (cumulative tobacco); ldl (low density lipoprotein cholesterol); adiposity; famhist (family history of heart disease); typea (type-A behavior); obesity; alcohol (current alcohol consumption); age (age at onset)
XX包含了9列下面的变量:收缩压(收缩压);烟草(累积的烟草); LDL(低密度脂蛋白胆固醇);肥胖; famhist(心脏疾病的家族病史); A型(A型行为);肥胖醇(酒精消费),年龄(发病年龄)
yresponse, coronary heart disease
yresponse,冠状动脉心脏疾病
参考文献----------References----------
Hastie, T., Tibshirani, R., and Friedman, J. (2001) Elements of Statistical Learning; Data Mining, Inference, and Prediction Springer-Verlag, New York.
实例----------Examples----------
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)
转载请注明:出自 生物统计家园网(http://www.biostatistic.net)。
注:
注1:为了方便大家学习,本文档为生物统计家园网机器人LoveR翻译而成,仅供个人R语言学习参考使用,生物统计家园保留版权。
注2:由于是机器人自动翻译,难免有不准确之处,使用时仔细对照中、英文内容进行反复理解,可以帮助R语言的学习。
注3:如遇到不准确之处,请在本贴的后面进行回帖,我们会逐渐进行修订。
|