EconPapers    
Economics at your fingertips  
 

Sensible parameters for polynomials and other splines

Roger Newson

United Kingdom Stata Users' Group Meetings 2011 from Stata Users Group

Abstract: Splines, including polynomials, are traditionally used to model nonlinear relationships involving continuous predictors. However, when they are included in linear models (or generalized linear models), the estimated parameters for polynomials are not easy for nonmathematicians to understand, and the estimated parameters for other splines are often not easy even for mathematicians to understand. It would be easier if the parameters were differences or ratios between the values of the spline at the reference points and the value of the spline at a base reference point or if the parameters were values of the polynomial or spline at reference points on the x-axis, or The bspline package can be downloaded from Statistical Software Components, and generates spline bases for inclusion in the design matrices of linear models, based on Schoenberg B-splines. The package now has a recently added module flexcurv, which inputs a sequence of reference points on the x-axis and outputs a spline basis, based on equally spaced knots generated automatically, whose parameters are the values of the spline at the reference points. This spline basis can be modified by excluding the spline vector at a base reference point and including the unit vector. If this is done, then the parameter corresponding to the unit vector will be the value of the spline at the base reference point, and the parameters corresponding to the remaining reference spline vectors will be differences between the values of the spline at the corresponding reference points and the value of the spline at the base reference point. The spline bases are therefore extensions, to continuous factors, of the bases of unit vectors and/or indicator functions used to model discrete factors. It is possible to combine these bases for different continuous and/or discrete factors in the same way, using product bases in a design matrix to estimate factor-value combination means and/or factor-value effects and/or factor interactions.

Date: 2011-09-26
References: View references in EconPapers View complete reference list from CitEc
Citations: View citations in EconPapers (2)

Downloads: (external link)
http://repec.org/usug2011/UK11_newson.pdf presentation materials (application/pdf)
http://repec.org/usug2011/UK11_newson_dofiles1.zip sample do-files (application/zip)

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:boc:usug11:01

Access Statistics for this paper

More papers in United Kingdom Stata Users' Group Meetings 2011 from Stata Users Group Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().

 
Page updated 2025-03-19
Handle: RePEc:boc:usug11:01