This file is part of IDEAS, which uses RePEc data


[ Papers | Articles | Software | Books | Chapters | Authors | Institutions | JEL Classification | NEP reports | Search | New papers by email | Author registration | Rankings | Volunteers | FAQ | Blog | Help! ]

Using Stata v9 to model complex non-linear relationships with restricted cubic splines

Author info | Abstract | Publisher info | Download info | Related research | Statistics
Author Info
William D. Dupont () (Department of Biostatistics, Vanderbilt University School of Medicine)
Dale Plummer (Department of Biostatistics, Vanderbilt University School of Medicine)

Additional information is available for the following registered author(s):

Abstract

Restricted cubic splines (RCSs) are used with generalized linear models and other regression methods to model complex non-linear relationships. A RCS with k knots is linear before the first and after the last knot, is a cubic polynomial between adjacent knots, and is continuous and smooth. A RCS model with k knots can be fitted with only k-1 covariates. rc_spline calculates these covariates from an independent covariate and the knot values. Default numbers of knots and/or knot values suggested by Harrell (2001) may be used. We can then use the full power of Stata v9 to build models, construct graphs, and perform residual analyses using these covariates. RCSs are illustrated by modeling length of stay (LOS) and discharge mortality as a function of admission blood pressure (BP) from the SUPPORT study. LOS and log-odds of death are highly non-linear functions of BP. Multiple linear and logistic regression with RCSs are used to model these data. Plots of expected outcome with 95% confidence bands are easily overlaid on scatterplots using standard Stata graphics. These regression curves are little affected by the knot placements. This robust methodology is easily taught to non-statisticians and greatly expands the modeling capacity of standard regression methods.

Download Info
To download:

If you experience problems downloading a file, check if you have the proper application to view it first. Information about this may be contained in the File-Format links below. In case of further problems read the IDEAS help page. Note that these files are not on the IDEAS site. Please be patient as the files may be large.

File URL: http://repec.org/nasug2005/RCsplines.pdf
File Format: application/pdf
File Function: presentation slides
Download Restriction: no
File URL: http://repec.org/nasug2005/support.do
File Format: text/plain
File Function: sample program
Download Restriction: no
File URL: http://repec.org/nasug2005/support.dta
File Format: application/x-stata
File Function: sample data file
Download Restriction: no
File URL: http://repec.org/nasug2005/support.log
File Format: text/plain
File Function: sample logfile
Download Restriction: no
File URL: http://repec.org/nasug2005/RCsplines.ppt
File Format:
File Function: presentation slides
Download Restriction: no

Publisher Info
Paper provided by Stata Users Group in its series North American Stata Users' Group Meetings 2005 with number 4.

Download reference. The following formats are available: HTML (with abstract), plain text (with abstract), BibTeX, RIS (EndNote, RefMan, ProCite), ReDIF
Length:
Date of creation: 12 Jul 2005
Date of revision:
Handle: RePEc:boc:asug05:4

Contact details of provider:
Postal: Administration Building, 140 Commonwealth Avenue, Chestnut Hill MA 02467
Phone: 617-552-3670
Fax: 617-552-2308
Email:
Web page: http://www.stata.com/meeting/4nasug
More information through EDIRC

For technical questions regarding this item, or to correct its listing, contact: (Christopher F Baum).

Related research
Keywords:

Statistics
Access and download statistics

Did you know? Citation analysis on IDEAS includes online papers that are freely accessible and whose text could be automatically analyzed, currently about 210000 papers.

This page was last updated on 2009-12-2.


This information is provided to you by IDEAS at the Department of Economics, College of Liberal Arts and Sciences, University of Connecticut using RePEc data on a server sponsored by the Society for Economic Dynamics.