Hello everyone,

I know, this is not a question referring to Stata directly, but maybe someone can help me out nevertheless. Thank you in advance!
I want to conduct a logistic regression, predicting the buying intent with the variables income, age and household size.
In my data however, those three independent variables are (ordinally?) scaled, as follows:

income: 0-1000;10000-20000;20000-30000;30000-40000;40000-50000;50000-60000;60000-70000;70000-80000;80000-90000;90000-100000
age: <20;20-30;30-40;40-50;50-60;60-70;>70
Household size: 1;2;3;4;5;>5

how do I correctly transform these variables so that i can use them in my regression?
My approach was to create a variable for age that ranges from 1-7; a variable for income that ranges from 1-10, etc,, representing each respective interval.

Is this even a correct way to do this? Maybe someone here can help me.

Best regards

Chris