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: