Summary
When developing a prediction model, an important consideration is how we code the predictors. Raw data from a study are often not in a form appropriate for entering in regression models and must first be manipulated. This is known as “coding.” As in any data analysis, we will usually start with obtaining an impression of the data under study, such as occurrence of missing values and the distribution of predictors. Descriptive analyses, such as frequency tables are useful to this aim. We will consider various issues in coding of unordered and ordered categorical predictors. For continuous predictors, we specifically discuss how we can limit the influence of outliers and interpret regression coefficients.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
1 GAMs are also often used for nonparametric regression functions, such as lowess.
- 2.
2 Note that standardization does not work for categorical variables or non-linear transformations such as polynomials
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2009 Springer Science+Business Media, LLC
About this chapter
Cite this chapter
Steyerberg, E. (2009). Coding of Categorical and Continuous Predictors. In: Clinical Prediction Models. Statistics for Biology and Health. Springer, New York, NY. https://doi.org/10.1007/978-0-387-77244-8_9
Download citation
DOI: https://doi.org/10.1007/978-0-387-77244-8_9
Published:
Publisher Name: Springer, New York, NY
Print ISBN: 978-0-387-77243-1
Online ISBN: 978-0-387-77244-8
eBook Packages: Mathematics and StatisticsMathematics and Statistics (R0)