Skip to main content
Erschienen in: International Journal of Public Health 1/2013

01.02.2013 | Hints & Kinks

Linear, nonlinear or categorical: how to treat complex associations? Splines and nonparametric approaches

verfasst von: Carsten Oliver Schmidt, Till Ittermann, Andrea Schulz, Hans J. Grabe, Sebastian E. Baumeister

Erschienen in: International Journal of Public Health | Ausgabe 1/2013

Einloggen, um Zugang zu erhalten

Excerpt

In the first part of this methods series on nonlinear exposure-outcome relations, polynomial transformations and fractional polynomials (FP) have been introduced (Schmidt et al. 2012). They share in common a single function that covers the whole exposure range. This limits their sensitivity to capture local characteristics of the data. This article will introduce two additional approaches to handle complex nonlinear associations. A brief overview of statistical procedures in Stata, SAS and R is provided in Table 1.
Table 1
Selected commands for splines and nonparametric methods in Stata, SAS, and R
Command (Program)
Description
mkspline/mkspline 2 (STATA)
These commands are used to create a basis for restricted cubic splines
rcspline (STATA)
RCS (SAS), ns (R)
bspline (STATA),
These commands generate a basis of B-splines
B-spline (SAS), bs (R)
uvrs (STATA)
Implements univariate regression splines comparable to fracpoly for fractional polynomials of degree 0, 1, and 3
mvrs (STATA)
Extends uvrs to allow for a multivariable model-building approach for regression spline models comparable to mfp for fractional polynomials
lowess, mlowess (STATA)
Procedures to calculate locally weighted regression models. mlowess allows for multivariable models
lowess (R), loess (SAS)
gam (STATA)
Procedures to calculate generalized additive models. The R package “mgcv” is the most versatile. The stata “gam” command relies on cubic smoothing splines as implemented in the gamfit Fortran program by Hastie and Tibshirani (1990)
Proc GAM (SAS)
mgcv-package (R)
mvss (STATA)
Implements a multivariable model-building approach for generalized additive models based on the Stata gam command comparable to mfp for fractional polynomials. mvss is available from http://​www.​imbi.​uni-freiburg.​de/​biom/​Royston-Sauerbrei-book/​(Royston and Sauerbrei 2008)
Literatur
Zurück zum Zitat Beck N, Jackman S (1998) Beyond linearity by default: generalized additive models. Am J Political Sci 42(2):596–627CrossRef Beck N, Jackman S (1998) Beyond linearity by default: generalized additive models. Am J Political Sci 42(2):596–627CrossRef
Zurück zum Zitat Binder H, Sauerbrei W (2010) Adding local components to global functions for continuous covariates in multivariable regression modeling. Stat Med 29(7–8):808–817PubMedCrossRef Binder H, Sauerbrei W (2010) Adding local components to global functions for continuous covariates in multivariable regression modeling. Stat Med 29(7–8):808–817PubMedCrossRef
Zurück zum Zitat Binder H, Sauerbrei W, Royston P (2011) Multivariable model-building with continuous covariates: 2. Comparison between splines and fractional polynomials, vol 106. Institut für Medizinische Biometrie und Medizinische Informatik, Universitätsklinikum Freiburg, Freiburg Binder H, Sauerbrei W, Royston P (2011) Multivariable model-building with continuous covariates: 2. Comparison between splines and fractional polynomials, vol 106. Institut für Medizinische Biometrie und Medizinische Informatik, Universitätsklinikum Freiburg, Freiburg
Zurück zum Zitat Cleveland WS, Devlin SJ (1988) Locally weighted regression: an approach to regression analysis by local fitting. J Am Stat Assoc 83(403):596–610CrossRef Cleveland WS, Devlin SJ (1988) Locally weighted regression: an approach to regression analysis by local fitting. J Am Stat Assoc 83(403):596–610CrossRef
Zurück zum Zitat Desquilbet L, Mariotti F (2010) Dose-response analyses using restricted cubic spline functions in public health research. Stat Med 29(9):1037–1057PubMed Desquilbet L, Mariotti F (2010) Dose-response analyses using restricted cubic spline functions in public health research. Stat Med 29(9):1037–1057PubMed
Zurück zum Zitat Hastie T, Tibshirani R (1990) Generalized additive models. Chapman and Hall, London Hastie T, Tibshirani R (1990) Generalized additive models. Chapman and Hall, London
Zurück zum Zitat Keele L (2008) Semiparametric regression for the social sciences. Wiley, Chichester Keele L (2008) Semiparametric regression for the social sciences. Wiley, Chichester
Zurück zum Zitat Royston P, Sauerbrei W (2007) Multivariable modeling with cubic regression splines: a principled approach. Stata J 7(1):45–70 Royston P, Sauerbrei W (2007) Multivariable modeling with cubic regression splines: a principled approach. Stata J 7(1):45–70
Zurück zum Zitat Royston P, Sauerbrei W (2008) Multivariable model-building: a pragmatic approach to regression anaylsis based on fractional polynomials for modelling continuous variables. Wiley, Chichester Royston P, Sauerbrei W (2008) Multivariable model-building: a pragmatic approach to regression anaylsis based on fractional polynomials for modelling continuous variables. Wiley, Chichester
Zurück zum Zitat Sauerbrei W, Royston P, Binder H (2007) Selection of important variables and determination of functional form for continuous predictors in multivariable model building. Stat Med 26(30):5512–5528PubMedCrossRef Sauerbrei W, Royston P, Binder H (2007) Selection of important variables and determination of functional form for continuous predictors in multivariable model building. Stat Med 26(30):5512–5528PubMedCrossRef
Zurück zum Zitat Schmidt CO, Ittermann T, Schulz A, Grabe HJ, Baumeister SE (2012) Linear, nonlinear or categorical—how to treat complex associations in regression analyses? Polynomial transformations and fractional polynomials. Int J Public Health. doi:IJPH-11-40 Schmidt CO, Ittermann T, Schulz A, Grabe HJ, Baumeister SE (2012) Linear, nonlinear or categorical—how to treat complex associations in regression analyses? Polynomial transformations and fractional polynomials. Int J Public Health. doi:IJPH-11-40
Zurück zum Zitat Volzke H et al (2010) Cohort profile: the study of health in Pomerania. Int J Epidemiol 40(2):294–307PubMedCrossRef Volzke H et al (2010) Cohort profile: the study of health in Pomerania. Int J Epidemiol 40(2):294–307PubMedCrossRef
Zurück zum Zitat Wingenfeld K et al (2010) The German version of the Childhood Trauma Questionnaire (CTQ): preliminary psychometric properties. Psychother Psychosom Med Psychol 60(11):442–450PubMedCrossRef Wingenfeld K et al (2010) The German version of the Childhood Trauma Questionnaire (CTQ): preliminary psychometric properties. Psychother Psychosom Med Psychol 60(11):442–450PubMedCrossRef
Zurück zum Zitat Wood S (2006) Generalized additive models: an introduction with R. Chapman & Hall, Boca Raton Wood S (2006) Generalized additive models: an introduction with R. Chapman & Hall, Boca Raton
Metadaten
Titel
Linear, nonlinear or categorical: how to treat complex associations? Splines and nonparametric approaches
verfasst von
Carsten Oliver Schmidt
Till Ittermann
Andrea Schulz
Hans J. Grabe
Sebastian E. Baumeister
Publikationsdatum
01.02.2013
Verlag
SP Birkhäuser Verlag Basel
Erschienen in
International Journal of Public Health / Ausgabe 1/2013
Print ISSN: 1661-8556
Elektronische ISSN: 1661-8564
DOI
https://doi.org/10.1007/s00038-012-0363-z

Weitere Artikel der Ausgabe 1/2013

International Journal of Public Health 1/2013 Zur Ausgabe