Question: what is the difference between a variable and a factor?
Answer: In this context, a factor is still a variable, but it refers to a categorical independent variable. ... In both cases, those are referring to a categorical independent variable. Like covariates, factors in a linear model can be either control variables or important independent variables.