Abstract
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 inspected and managed before the statistical analysis starts. As in any data analysis, we will usually start with obtaining an impression of the data under study, such as the occurrence of missing values and the distribution of predictors and outcome. Descriptive analyses, such as frequency tables and graphical displays, 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.
Note that standardization does not work well for categorical variables or nonlinear transformations such as polynomials.
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
Copyright information
© 2019 Springer Nature Switzerland AG
About this chapter
Cite this chapter
Steyerberg, E.W. (2019). Coding of Categorical and Continuous Predictors. In: Clinical Prediction Models. Statistics for Biology and Health. Springer, Cham. https://doi.org/10.1007/978-3-030-16399-0_9
Download citation
DOI: https://doi.org/10.1007/978-3-030-16399-0_9
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-16398-3
Online ISBN: 978-3-030-16399-0
eBook Packages: Mathematics and StatisticsMathematics and Statistics (R0)