dataset = Kyp begin description Source: Hastie and Tibshirani 1990, pp. 301-303 Data were collected on 83 patients undergoing corrective spinal surgery (Bell et al., 1989). The objective was to determine important risk factors for kyphosis following surgery. The risk factors are age in years, the starting vertebrae level of the surgery and the number of levels involved. Cases 15 and 28 are removed. The smooths were computed in Splus with the statement gam(formula = Kyphosis s(Age, 3) + s(Number, 3) + s(Start, 3), family = binomial, data = kyphosis) Istart is to be used with a quadratic for age, as in hastie and tibshirani. end description begin variables Col 0 = Age = months Col 1 = Start = starting vertebrae Col 2 = Num = number of vertebrae Col 3 = Kyphosis = 1 if present, 0 if absent Col 4 = S[Age] = Smooth of d.f=3 Col 5 = S[Num] = Smooth of d.f=3 Col 6 = S[Start] = Smooth of d.f=3 Col 7 = Istart = I((Start > 12) * (Start - 12)) end variables begin data ( 71 5 3 0 0.34528 -0.497647 1.93348 0 158 14 3 0 0.106661 -0.497647 -1.10934 2 128 5 4 1 0.849616 -0.0635042 1.93348 0 2 1 5 0 -2.77375 0.550033 1.24304 0 1 15 4 0 -2.82235 -0.0635042 -1.92595 3 1 16 2 0 -2.82235 -1.45555 -2.78927 4 61 17 2 0 -0.0587847 -1.45555 -3.65926 5 37 16 3 0 -1.11278 -0.497647 -2.78927 4 113 16 2 0 1.0962 -1.45555 -2.78927 4 59 12 6 1 -0.141509 1.16358 0.148912 0 82 14 5 1 0.75252 0.550033 -1.10934 2 148 16 3 0 0.381574 -0.497647 -2.78927 4 18 2 5 0 -2.00508 0.550033 1.45166 0 1 12 4 0 -2.82235 -0.0635042 0.148912 0 168 18 3 0 -0.22255 -0.497647 -4.52948 6 1 16 3 0 -2.82235 -0.497647 -2.78927 4 78 15 6 0 0.61348 1.16358 -1.92595 3 175 13 5 0 -0.477057 0.550033 -0.407697 1 80 16 5 0 0.684714 0.550033 -2.78927 4 27 9 4 0 -1.58188 -0.0635042 1.17637 0 22 16 2 0 -1.81706 -1.45555 -2.78927 4 105 5 6 1 1.13734 1.16358 1.93348 0 96 12 3 1 1.08316 -0.497647 0.148912 0 131 3 2 0 0.784667 -1.45555 1.63312 0 15 2 7 1 -2.14668 1.28722 1.45166 0 9 13 5 0 -2.43424 0.550033 -0.407697 1 8 6 3 0 -2.48259 -0.497647 1.95176 0 100 14 3 0 1.12173 -0.497647 -1.10934 2 4 16 3 0 -2.67656 -0.497647 -2.78927 4 151 16 2 0 0.304026 -1.45555 -2.78927 4 31 16 3 0 -1.39358 -0.497647 -2.78927 4 125 11 2 0 0.911476 -1.45555 0.535303 0 130 13 5 0 0.806579 0.550033 -0.407697 1 112 16 3 0 1.10541 -0.497647 -2.78927 4 140 11 5 0 0.578092 0.550033 0.535303 0 93 16 3 0 1.03725 -0.497647 -2.78927 4 1 9 3 0 -2.82235 -0.497647 1.17637 0 52 6 5 1 -0.439222 0.550033 1.95176 0 20 9 6 0 -1.91105 1.16358 1.17637 0 91 12 5 1 0.99853 0.550033 0.148912 0 73 1 5 1 0.424149 0.550033 1.24304 0 35 13 3 0 -1.20599 -0.497647 -0.407697 1 143 3 9 0 0.505482 0.237228 1.63312 0 61 1 4 0 -0.0587847 -0.0635042 1.24304 0 97 16 3 0 1.09516 -0.497647 -2.78927 4 139 10 3 1 0.601944 -0.497647 0.856116 0 136 15 4 0 0.672107 -0.0635042 -1.92595 3 131 13 5 0 0.784666 0.550033 -0.407697 1 121 3 3 1 0.986469 -0.497647 1.63312 0 177 14 2 0 -0.552187 -1.45555 -1.10934 2 68 10 5 0 0.225602 0.550033 0.856116 0 9 17 2 0 -2.43424 -1.45555 -3.65926 5 139 6 10 1 0.601944 -0.0767791 1.95176 0 2 17 2 0 -2.77375 -1.45555 -3.65926 5 140 15 4 0 0.578092 -0.0635042 -1.92595 3 72 15 5 0 0.384864 0.550033 -1.92595 3 2 13 3 0 -2.77375 -0.497647 -0.407697 1 120 8 5 1 1.00339 0.550033 1.51706 0 51 9 7 0 -0.482688 1.28722 1.17637 0 102 13 3 0 1.13208 -0.497647 -0.407697 1 130 1 4 1 0.806579 -0.0635042 1.24304 0 114 8 7 1 1.08592 1.28722 1.51706 0 81 1 4 0 0.719094 -0.0635042 1.24304 0 118 16 3 0 1.03464 -0.497647 -2.78927 4 118 16 4 0 1.03464 -0.0635042 -2.78927 4 17 10 4 0 -2.05216 -0.0635042 0.856116 0 195 17 2 0 -1.25926 -1.45555 -3.65926 5 159 13 4 0 0.0760907 -0.0635042 -0.407697 1 18 11 4 0 -2.00508 -0.0635042 0.535303 0 15 16 5 0 -2.14668 0.550033 -2.78927 4 158 14 5 0 0.106661 0.550033 -1.10934 2 127 12 4 0 0.870646 -0.0635042 0.148912 0 87 16 4 0 0.902563 -0.0635042 -2.78927 4 206 10 4 0 -1.70672 -0.0635042 0.856116 0 11 15 3 0 -2.33783 -0.497647 -1.92595 3 178 15 4 0 -0.590074 -0.0635042 -1.92595 3 157 13 3 1 0.136621 -0.497647 -0.407697 1 26 13 7 0 -1.62895 1.28722 -0.407697 1 120 13 2 0 1.00339 -1.45555 -0.407697 1 42 6 7 1 -0.883109 1.28722 1.95176 0 36 13 4 0 -1.15933 -0.0635042 -0.407697 1 )