• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
The Analysis Factor

The Analysis Factor

Statistical Consulting, Resources, and Statistics Workshops for Researchers

  • Home
  • Our Programs
    • Membership
    • Online Workshops
    • Free Webinars
    • Consulting Services
  • About
    • Our Team
    • Our Core Values
    • Our Privacy Policy
    • Employment
    • Collaborate with Us
  • Statistical Resources
  • Contact
  • Blog
  • Login

categorical predictor

Should I Specify a Model Predictor as Categorical or Continuous?

by Karen Grace-Martin Leave a Comment

Predictor variables in statistical models can be treated as either continuous or categorical.

Usually, this is a very straightforward decision.

Categorical predictors, like treatment group, marital status, or highest educational degree should be specified as categorical.

Likewise, continuous predictors, like age, systolic blood pressure, or percentage of ground cover should be specified as continuous.

But there are numerical predictors that aren’t continuous. And these can sometimes make sense to treat as continuous and sometimes make sense as categorical.

[Read more…] about Should I Specify a Model Predictor as Categorical or Continuous?

Tagged With: categorical predictor, continuous predictor, Discrete Counts, Linear Regression Model, Model Building, numeric variable, predictor variable

Related Posts

  • Recoding a Variable from a Survey Question to Use in a Statistical Model
  • Interpreting Regression Coefficients
  • Overfitting in Regression Models
  • Centering a Covariate to Improve Interpretability

The Impact of Removing the Constant from a Regression Model: The Categorical Case

by Jeff Meyer 5 Comments

by Jeff MeyerStage 2

In a simple linear regression model, how the constant (a.k.a., intercept) is interpreted depends upon the type of predictor (independent) variable.

If the predictor is categorical and dummy-coded, the constant is the mean value of the outcome variable for the reference category only. If the predictor variable is continuous, the constant equals the predicted value of the outcome variable when the predictor variable equals zero.

Removing the Constant When the Predictor Is Categorical

When your predictor variable X is categorical, the results are logical. Let’s look at an example. [Read more…] about The Impact of Removing the Constant from a Regression Model: The Categorical Case

Tagged With: categorical predictor, constant, continuous variable, Dummy Coded, Interpreting intercept, linear regression, predictor variable

Related Posts

  • What is Multicollinearity? A Visual Description
  • A Strategy for Converting a Continuous to a Categorical Predictor
  • Same Statistical Models, Different (and Confusing) Output Terms
  • Recoding a Variable from a Survey Question to Use in a Statistical Model

Pros and Cons of Treating Ordinal Variables as Nominal or Continuous

by Karen Grace-Martin 3 Comments

There are not a lot of statistical methods designed just for ordinal variables.Stage 2

But that doesn’t mean that you’re stuck with few options.  There are more than you’d think. [Read more…] about Pros and Cons of Treating Ordinal Variables as Nominal or Continuous

Tagged With: categorical outcome, categorical predictor, continuous predictor, continuous variable, nominal variable, ordinal variable

Related Posts

  • Recoding a Variable from a Survey Question to Use in a Statistical Model
  • A Strategy for Converting a Continuous to a Categorical Predictor
  • A Useful Graph for Interpreting Interactions between Continuous Variables
  • The Impact of Removing the Constant from a Regression Model: The Categorical Case

Confusing Statistical Term #6: Factor

by Karen Grace-Martin 6 Comments

Factor is confusing much in the same way as hierarchical and beta, because it too has different meanings in different contexts.  Factor might be a little worse, though, because its meanings are related.

In both meanings, a factor is a variable.  But a factor has a completely different meaning and implications for use in two different contexts. [Read more…] about Confusing Statistical Term #6: Factor

Tagged With: ANOVA, categorical predictor, categorical variable, Factor Analysis, Factor Score

Related Posts

  • Same Statistical Models, Different (and Confusing) Output Terms
  • How To Calculate an Index Score from a Factor Analysis
  • Can Likert Scale Data ever be Continuous?
  • How Big of a Sample Size do you need for Factor Analysis?

3 Situations when it makes sense to Categorize a Continuous Predictor in a Regression Model

by Karen Grace-Martin 1 Comment

Stage 2In many research fields, particularly those that mostly use ANOVA, a common practice is to categorize continuous predictor variables so they work in an ANOVA. This is often done with median splits—splitting the sample into two categories—the “high” values above the median and the “low” values below the median. There are many reasons why this isn’t such a good idea:

  • the median varies from sample to sample, making the categories in different samples have different meanings
  • all values on one side of the median are considered equivalent—any variation within the category is ignored, and two values right next to each other on either side of the median are considered different
  • the categorization is completely arbitrary. A ‘High” score isn’t necessarily high. If the scale is skewed, as many are, even a value near the low end can end up in the “high” category.

But it can be very useful and legitimate to be able to choose whether to treat an independent variable as categorical or continuous. Knowing when it is appropriate [Read more…] about 3 Situations when it makes sense to Categorize a Continuous Predictor in a Regression Model

Tagged With: ANOVA, categorical predictor, continuous predictor, General Linear Model, Median Split, Regression

Related Posts

  • Continuous and Categorical Variables: The Trouble with Median Splits
  • 3 Reasons Psychology Researchers should Learn Regression
  • Same Statistical Models, Different (and Confusing) Output Terms
  • What are Sums of Squares?

Continuous and Categorical Variables: The Trouble with Median Splits

by Karen Grace-Martin 8 Comments

Stage 2A Median Split is one method for turning a continuous variable into a categorical one.  Essentially, the idea is to find the median of the continuous variable.  Any value below the median is put it the category “Low” and every value above it is labeled “High.”

This is a very common practice in many social science fields in which researchers are trained in ANOVA but not Regression.  At least that was true when I was in grad school in psychology.  And yes, oh so many years ago, I used all these techniques I’m going to tell you not to.

There are problems with median splits.  The first is purely logical.  When a continuum is categorized, every value above the median, for example, is considered equal.  Does it really make sense that a value just above the median is considered the same as values way at the end?  And different than values just below the median?  Not so much.

So one solution is to split the sample into three groups, not two, then drop the middle group.  This at least creates some separation between the two groups.  The obvious problem, here though, is you’re losing a third of your sample.

The second problem with categorizing a continuous predictor, regardless of how you do it, is loss of power (Aiken & West, 1991).  It’s simply harder to find effects that are really there.

So why is it common practice?  Because categorizing continuous variables is the only way to stuff them into an ANOVA, which is the only statistics method researchers in many fields are trained to do.

Rather than force a method that isn’t quite appropriate, it would behoove researchers, and the quality of their research, to learn the general linear model and how ANOVA fits into it.  It’s really only a short leap from ANOVA to regression but a necessary one.  GLMs can include interactions among continuous and categorical predictors just as ANOVA does.

If left continuous, the GLM would fit a regression line to the effect of that continuous predictor.  Categorized, the model will compare the means.  It often happens that while the difference in means isn’t significant, the slope is.

Reference: Aiken & West (1991). Multiple Regression: Testing and interpreting interactions.

Bookmark and Share

Tagged With: ANOVA, categorical predictor, continuous predictor, GLM, Median Split, Regression

Related Posts

  • 3 Situations when it makes sense to Categorize a Continuous Predictor in a Regression Model
  • 3 Reasons Psychology Researchers should Learn Regression
  • Beyond Median Splits: Meaningful Cut Points
  • Centering a Covariate to Improve Interpretability

  • « Go to Previous Page
  • Go to page 1
  • Go to page 2

Primary Sidebar

This Month’s Statistically Speaking Live Training

  • Member Training: A Gentle Introduction to Bootstrapping

Upcoming Free Webinars

Getting Started with R
3 Overlooked Strengths of Structural Equation Modeling
4 Critical Steps in Building Linear Regression Models

Upcoming Workshops

    No Events

Copyright © 2008–2022 The Analysis Factor, LLC. All rights reserved.
877-272-8096   Contact Us

The Analysis Factor uses cookies to ensure that we give you the best experience of our website. If you continue we assume that you consent to receive cookies on all websites from The Analysis Factor.
Continue Privacy Policy
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT