Code
During the first few years after Semiparametric Regression was published the authors provided code for various procedures in the book. Some of it has become dated and the companion R language book has the most uptodate advice on code within the R and Stan languages. However, on this webpage we still provide our older code even though some of it has not be tested for a while. We also point to some relevant journal articles.
BUGS code
The following articles provide illustrations of semiparametric regression in the BUGS language:
Crainiceanu, C., Ruppert, D. and Wand, M.P. (2005).
Bayesian Analysis for Penalized Spline Regression Using WinBUGS.
Journal of Statistical Software, Volume 14, Issue 14, 124.
[PDF file]
Marley, J.K. and Wand, M.P. (2010).
NonStandard Semiparametric Regression via BRugs.
Journal of Statistical Software, Volume 37, Issue 5, 130.
[
PDF file, code and data]
Matlab code
This ZIP archive file contains basic functions for penalized spline fitting.
R code
This set of examples R corresponding to the shortcourse on semiparametric regression given in Pittsburgh, U.S.A.,
in March 2004. The 9 files below comprise the 4 data files, a required support function and 4 script files.
fossil.dat
ozonecalif.dat
sitkaspruce.dat
unionwage.dat
default.knots.r
fossil.Rs
ozonecalif.Rs
sitkaspruce.Rs
unionwage.Rs
SAS code
The macros given in Section B.3.3 of Semiparametric Regression are in this text file.
This ZIP archive file contains a set of SAS examples corresponding to the shortcourse on semiparametric regression given in Pittsburgh, U.S.A.,
in March 2004.
The following article provide illustration of semiparametric regression in the SAS language:
Ngo, L. and Wand, M.P. (2004).
Smoothing with Mixed Model Software.
Journal of Statistical Software, Volume 9, Issue 1, 154.
[PDF file, code and data]
