13.07.2015 Views

ASReml-S reference manual - VSN International

ASReml-S reference manual - VSN International

ASReml-S reference manual - VSN International

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

8.9 Balanced longitudinal data - Random coefficients and cubic smoothing splines 116> orange names(orange)[1] "Tree" "x" "circ" "Season"where Tree is a factor with 5 levels, x is tree age in days since 31 December 1968, circis the trunk circumference and Season is a factor with two levels, Spring and Autumn.The factor Season was included after noting that tree age spans several years and ifconverted to day of year, measurements were taken in either April/May (Spring) orSeptember/October (Autumn).Initially we restrict the dataset to tree 1 to demonstrate fitting cubic splines in asreml.The model includes the intercept and linear regression of trunk circumference on x andan additional random term spl(x) which includes a random term with a special designmatrix with 7−2 = 5 columns which relate to the vector, δ whose elements δ i , i = 2, . . . , 6are the second differentials of the cubic spline at the knot points. The second differentialsof a natural cubic spline are zero at the first and last knot points [Green and Silverman,1994].> orange.asr summary(orange.asr)$varcompgamma component std.error z.ratio constraintspl(x) 0.07876884 3.954159 9.950608 0.3973786 PositiveR!variance 1.00000000 50.199529 37.886791 1.3249876 Positive> wald(orange.asr, denDF="default")$WaldDf denDF F inc Pr(Intercept) 1 3.5 1382.0 3.124431e-06x 1 3.5 217.5 1.229875e-04$stratumVariancesdf Variance spl(x) R!variancespl(x) 1.488944 97.64263 11.99606 1R!variance 3.511056 50.20223 0.00000 1Predicted values of the spline curve at nominated points can be obtained by:> orange.pv

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!