clear all close all clc load wage2.mat; % Obs: 935 data = wage; % 1. wage monthly earnings % 2. hours average weekly hours % 3. IQ IQ score % 4. KWW knowledge of world work score % 5. educ years of education % 6. exper years of work experience % 7. tenure years with current employer % 8. age age in years % 9. married =1 if married % 10. black =1 if black % 11. south =1 if live in south % 12. urban =1 if live in SMSA % 13. sibs number of siblings % 14. brthord birth order % 15. meduc mother's education % 16. feduc father's education % 17. lwage natural log of wage wage = data(:,1); IQ = data(:,3);