This program has been validated with public use adult.sas (save as adult.txt by a free SAS viewer) and adult.dat files. These files could be downloaded from NHANES III website. This program has successfully read the first 10 lines (1238 variables of approximately 20,000 records (rows)), loaded them into a Matlab dataset object, associated with variables the variable names and descriptions of the variables. The loaded data set should be sufficient for initial exploratory purposes. This program has left out some specific formatting information available in the SAS file such as the width and precision of the
variables for display. However, the relevant information have been collected in the FORMAT and LENGTH sections and could be used for that. This program expects 1. the filename of a SAS file provided by NCHS NHANES and 2. the filenanme of the public use NHANES data, they could be downloaded from NHANES III website.
Please contact me if you have any suggestions and comments.
Rex Cheung (2019). NHANESCOPE: National Health and Nutrition Examination Survey Clinical Outcome Prediction Expert (https://www.mathworks.com/matlabcentral/fileexchange/39998-nhanescope-national-health-and-nutrition-examination-survey-clinical-outcome-prediction-expert), MATLAB Central File Exchange. Retrieved .