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
Related Posts with Interval Scaled Independent Variables
How do i drop all dates, except the earliest date for specific ID variablesI have a dataset where patients have specific ID-numbers. They also have one specific ID for every t…
I need help to create a lagged variableI am currently working on a dataset (monthly flows of tourists between each pair of regions (O-D) du…
Quantile regression with factor variables and clustered errors in Stata 14.2Dear all, is it possible to conduct a quantile regression with factor variables and clustered stand…
Creating WeightsI am trying to create a weighted wage, using employment and wage. I tried the following command, but…
How do i drop earliest date for specific ID variablesI have a dataset where patientes have specific ID-numbers. They also have one specific ID for every …
Subscribe to:
Post Comments (Atom)
0 Response to Interval Scaled Independent Variables
Post a Comment