Sensible parameters for univariate and multivariate splines
Roger Newson
Stata Journal, 2012, vol. 12, issue 3, 479-504
Abstract:
The package bspline, downloadable from Statistical Software Components, now has three commands. The first, bspline, generates a basis of Schoenberg B-splines. The second, frencurv, generates a basis of reference splines whose parameters in the regression model are simply values of the spline at reference points on the X axis. The recent addition, flexcurv, is an easy-to-use version of frencurv that generates reference splines with automatically generated, sensibly spaced knots. frencurv and flexcurv now have the additional option of generating an incomplete basis of reference splines, with the reference spline for a baseline reference point omitted or set to 0. This incomplete basis can be completed by adding the standard unit vector to the design matrix and can then be used to estimate differences between values of the spline at the remaining reference points and the value of the spline at the baseline reference point. Reference splines therefore model continuous factor variables as indicator variables (or "dummies") model discrete factor variables. The method can be extended in a similar way to define factor-product bases, allowing the user to estimate factor-combination means, subset-specific effects, or even factor interactions involving multiple continuous or discrete factors.
Keywords: bspline; flexcurv; frencurv; polynomial; spline; B-spline; interpolation; linear; quadratic; cubic; multivariate; factor; interaction (search for similar items in EconPapers)
Date: 2012
Note: to access software from within Stata, net describe http://www.stata-journal.com/software/sj12-3/sg151_2/
References: View references in EconPapers View complete reference list from CitEc
Citations: View citations in EconPapers (14)
Downloads: (external link)
http://www.stata-journal.com/article.html?article=sg151_2 link to article purchase
Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:tsj:stataj:v:12:y:2012:i:3:p:479-504
Ordering information: This journal article can be ordered from
http://www.stata-journal.com/subscription.html
Access Statistics for this article
Stata Journal is currently edited by Nicholas J. Cox and Stephen P. Jenkins
More articles in Stata Journal from StataCorp LLC
Bibliographic data for series maintained by Christopher F. Baum () and Lisa Gilmore ().