Last change
on this file since 80 was
80,
checked in by dtax, 11 years ago
|
Creator files for prtools datasets.
|
File size:
1.2 KB
|
Line | |
---|
1 | %BIOMED 194 objects with 5 features in 2 classes |
---|
2 | % |
---|
3 | % X = BIOMED; |
---|
4 | % |
---|
5 | % The biomed dataset to develop screening methods to identify carriers |
---|
6 | % of a rare genetic disorder. Because the disease is rare, there are |
---|
7 | % only a few carriers of the disease from whom data are available. |
---|
8 | % |
---|
9 | % X = BIOMED(VAL); |
---|
10 | % |
---|
11 | % Per default the entries with missing values are removed. When you want |
---|
12 | % to do something else, use one of the options in missingvalues.m. |
---|
13 | % This is the ''biomed' dataset of the StatLib Datasets Archive, see |
---|
14 | % http://lib.stat.cmu.edu/datasets/ |
---|
15 | % |
---|
16 | % SEE ALSO |
---|
17 | % DATASETS, MISSINGVALUES |
---|
18 | |
---|
19 | function x = biomed(val) |
---|
20 | |
---|
21 | prdatasets(mfilename,1,'http://prtools.org/prdatasets/biomed.dat'); |
---|
22 | if nargin<1 |
---|
23 | val = 'remove'; |
---|
24 | end |
---|
25 | |
---|
26 | user.desc = 'The purpose of the analysis is to develop a screening procedure to detect carriers and to describe its effectiveness. '; |
---|
27 | user.link = 'http://lib.stat.cmu.edu/datasets/'; |
---|
28 | cl = {'carrier' 'normal'}; |
---|
29 | fl = {'age' 'measurement 1' 'measurement 2' 'measurement 3' 'measurement 4'}; |
---|
30 | |
---|
31 | a = load('biomed.dat'); |
---|
32 | x = prdataset(a(:,[3 5 6 7 8]),cl(a(:,end))); |
---|
33 | x = setfeatlab(x,fl); |
---|
34 | x = setname(x,'Biomed'); |
---|
35 | [x,msg] = prmissingvalues(x,val); |
---|
36 | user.desc = [user.desc msg]; |
---|
37 | x = setuser(x,user); |
---|
38 | |
---|
39 | return |
---|
Note: See
TracBrowser
for help on using the repository browser.