Changeset 123 for prdatasets/biomed.m


Ignore:
Timestamp:
03/05/18 00:14:20 (7 years ago)
Author:
bduin
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • prdatasets/biomed.m

    r94 r123  
    1010%
    1111% By default objects with missing values are removed. When something else
    12 % is desired, use one of the options in MISVAL.
     12% is desired, use one of the options in MISVAL for VAL.
    1313%
    1414% This is the ''biomed' dataset of the <a href="http://lib.stat.cmu.edu/datasets/">StatLib Datasets Archive</a>.
     15% Just the original features 3, 5, 6, 7 and 8 are used.
    1516%
    1617% SEE ALSO <a href="http://37steps.com/prtools">PRTools Guide</a>, <a href="http://archive.ics.uci.edu/ml/">UCI Website</a>
     
    2122function x = biomed(val)
    2223
    23 prdatasets(mfilename,1,'http://prtools.org/prdatasets/biomed.dat');
    24 if nargin<1
    25         val = 'remove';
    26 end
     24if nargin < 1, val = 'remove'; end
     25a = pr_getdata('http://37steps.com/data/prdatasets/biomed.dat',1);
    2726
    2827user.desc = 'The purpose of the analysis is to develop a screening procedure to detect carriers and to describe its effectiveness. ';
     
    3130fl = {'age' 'measurement 1' 'measurement 2' 'measurement 3' 'measurement 4'};
    3231
    33 a = load('biomed.dat');
    3432x = pr_dataset(a(:,[3 5 6 7 8]),cl(a(:,end)));
    3533x = setfeatlab(x,fl);
    3634x = setname(x,'Biomed');
    37 [x,msg] = misval(x,val);
    38 user.desc = [user.desc msg];
    3935x = setuser(x,user);
     36x = misval(x,val);
    4037
    4138return
Note: See TracChangeset for help on using the changeset viewer.