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
st_store() and stata() when using moptimize(): IV qregHi, I have a Mata function that creates a column vector (called yd below), passes it to Stata as a t…
Stata syntaxes on Early Childhood Development Index measures*(dofile/commandos)Hi everyone Can you help me a student out with some commandos? I need help coverting those SPSS sy…
Local Vs. GlobalHi everyone! I'm a grad student with a few years of experience with Stata. In all my courses that us…
Can I use Likliehood Ratio Test to choose Double Hurdle Model over Tobit?I am trying to analyze the determinants of the intention to grow an a certain variety of maize in Za…
Technical indicatorsHi, I am trying to replicate three technical indicators as done in the paper Neely et al. (2014) to…
Subscribe to:
Post Comments (Atom)
0 Response to Interval Scaled Independent Variables
Post a Comment