This LaTeX document is available as postscript or asAdobe PDF.
Below is an example data set for a spline regression exercise.
In a spline function, inclusion of one of the x-variables
depends on the
value of another variable. In this example x2 is included
only if
x1 is greater than 7, then
x2 = x1 - 7, otherwise,
x2=0. The number 7 is called a knot, a point in the
curve where the shape changes direction.
Below are the data and model equation:
| Source | df | SS |
| Total | 10 | 232597.0000 |
| Mean | 1 | 218744.1000 |
| Model | 4 | 229764.2700 |
| Error | 6 | 2832.7303 |
R2 = 0.7955.
For model with 4 columns,
,
and for model with 3 columns,
therefore, model with 4 columns in
is better.
This LaTeX document is available as postscript or asAdobe PDF.
Larry Schaeffer