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
What do the numbers in the box mean in the output of the estimates of SEM builderI used SEM builder to test some model. But I don't understand what the numbers in the boxes are afte…
Looping through multiple strings for comparisonDear all, I would like to compare educational institutions of two workers and code a binary variabl…
Analysis of rotating panel design data in StataHello everyone, I have a 9-year rotating panel design in which every year, one-ninth of the sample i…
Superimposing observed and predicted Weibull survivor function graphsHi I was wondering if there is a simple way to superimpose observed and fitted Weibull survivor func…
zero-inflated (poisson) mediatorsHi, I am running a mediation which the mediator is zero-inflated poisson and the outcome variable is…
Subscribe to:
Post Comments (Atom)
0 Response to Interval Scaled Independent Variables
Post a Comment