Skip to main content

Coding of Categorical and Continuous Predictors

  • Chapter
  • First Online:
Clinical Prediction Models

Part of the book series: Statistics for Biology and Health ((SBH))

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.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 189.00
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Hardcover Book
USD 249.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Notes

  1. 1.

    1 GAMs are also often used for nonparametric regression functions, such as lowess.

  2. 2.

    2 Note that standardization does not work for categorical variables or non-linear transformations such as polynomials

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints 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

Publish with us

Policies and ethics