/********************************************* * Kleinbaum, Chapter 5, Problem #4, p. 69 * *********************************************/ /* Create the Stata dataset */ capture clear input di iq 26.2 110 33 89 17.5 102 25.25 98 20.3 110 31.9 98 21.1 122 22.7 119 10.7 120 22.1 92 18.6 116 35.5 85 38 73 30 90 19.7 104 41.1 82 39.6 134 25.15 114 end format di %9.2f label data "Klenbaum Chapter 5, Problem #4, p. 69" label variable di "Delinquency Index (0-50)" label variable iq "Respondent Intelligence Quotient" compress list, noobs sep(9) desc