source: prdatasets/diabetes.m @ 84

Last change on this file since 84 was 81, checked in by bduin, 11 years ago
File size: 886 bytes
Line 
1%DIABETES 768 objects with 8 features in 2 classes
2%
3%        X = DIABETES
4%
5% Pima-indians diabetes database from National Institute of Diabetes and
6% Digestive and Kidney Diseases. This is the 'Pima Indians Diabetes'
7% dataset of the UCI Machine Learning Repository,
8% //www.ics.uci.edu/~mlearn/MLRepository.html
9
10function x = diabetes
11
12prdatasets(mfilename,1,'http://prtools.org/prdatasets/diabetes.dat');
13user.desc='The Pima Indians Diabetes Database from UCI.';
14user.link = 'ftp://ftp.ics.uci.edu/pub/machine-learning-databases/pima-indians-diabetes/';
15cl = {'present' 'absent'};
16fl = {'NumPregnancies' 'plasmaGlucose' 'diastolicBloodPr' ...
17'tricepsSkinfold' '2hrSerumInsulin' 'BodyMassIndex' ...
18'DiabetesPedigreeFn' 'Age'};
19
20a = load('diabetes.dat');
21x = pr_dataset(a(:,1:(end-1)),cl(a(:,end)+1));
22x = setfeatlab(x,fl);
23x = setname(x,'Diabetes');
24x = setuser(x,user);
25
26return
Note: See TracBrowser for help on using the repository browser.