# Can a logistic regression have both continuous and discrete variables as covariates or as regressors?

My dependent variable should be binary, but can I include discrete and continuous variables simultaneously in my equation? For example let's say X1 is discrete and X2 is continuous?

• Yes, no problem. – Momo Aug 31 '18 at 22:42
• Could you please elaborate as in how that would be possible? – Sushmoy Mallik Sep 1 '18 at 22:33
• Do you mean how it should be done when using statistics software? Or do you mean how to specify the equation? Or are you interested in the maths? In all cases it would help to know more about the variables, the software used and where you are not sure when including the regressors. – Momo Sep 1 '18 at 23:01

There is absolutely no problem, just code your categorical predictor(s) as dummy variables, or some other form of . This can be used with all form of regression models. It is usually the type of the response ($$Y$$) variable which "dictates" the type of regression model that can be used, not the predictors.