next up previous


This LaTeX document is available as postscript or asAdobe PDF.

ANSC*6370 - QG and Animal Breeding
Fall 03 - Assignment 6

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:

\begin{displaymath}y_{i} = a \ + \ b_{1}x_{1} \ + \ b_{2}x_{1}^{2} \ + \
b_{3}x_{2}^{2} \ + \ e_{i}, \end{displaymath}

where

\begin{displaymath}{\bf y} = \left( \begin{array}{r} 147 \\ 88 \\ 202 \\ 135 \\ ...
...n{array}{r}
a \\ b_{1} \\ b_{2} \\ b_{3} \end{array} \right). \end{displaymath}

where \( V({\bf y}) = {\bf V} = {\bf I} \sigma^{2}_{e} \).

1.
Construct and solve the ordinary least squares equations.
2.
Give the basic AOV table, and R2 value.
3.
Test the following hypotheses using the general linear hypothesis method, and summarize the results in the AOV table.
(a)
a = 250.


(b)
\( b_{1} = -5, \ \ b_{2} = 0. \mbox{ and } b_{2}-b_{3}=3. \)

4.
Repeat the analysis without x22 in the model. Compare the two models using $-2log(p({\bf y}\mid{\bf\theta}))$.



Larry Schaeffer
2003-10-23