Hello,
First I'd like to apologize for the probably rather beginner question I'm going to ask, but I'm really new to stata.
Second:
I have a problem concerning a regression I'm trying to do:
I have datas about subjective well-being, Income, age and so on.
To get a better view about the correlations between these variables, I tried to, for example, group "age" in groups from 25-30,31-35, 36-40
by using commands as:
. generate low_age1 = Age if Age >= 25 & Age < 30.
Now my problem is that when I'm trying to make a linear regression as following:
. regress SWB low_age1 low_age2
for example, it just tells me that there are "no observations r(2000)";
If I make other groups including the previous ages with commands as:
. generate low_age1 = Age if Age < 30
. generate low_age2 = Age if Age < 35
It gives me a regression but says "low_age2 omitted because of collinearity" and therefore doesn't show me a coefficient for "low_age2".
I hope this kind of makes sense and is understandable.
I'd be really greatful, if someone could help me with this probably newbish question.
Thanks a lot in advance
Marcel M.
First I'd like to apologize for the probably rather beginner question I'm going to ask, but I'm really new to stata.
Second:
I have a problem concerning a regression I'm trying to do:
I have datas about subjective well-being, Income, age and so on.
To get a better view about the correlations between these variables, I tried to, for example, group "age" in groups from 25-30,31-35, 36-40
by using commands as:
. generate low_age1 = Age if Age >= 25 & Age < 30.
Now my problem is that when I'm trying to make a linear regression as following:
. regress SWB low_age1 low_age2
for example, it just tells me that there are "no observations r(2000)";
If I make other groups including the previous ages with commands as:
. generate low_age1 = Age if Age < 30
. generate low_age2 = Age if Age < 35
It gives me a regression but says "low_age2 omitted because of collinearity" and therefore doesn't show me a coefficient for "low_age2".
I hope this kind of makes sense and is understandable.
I'd be really greatful, if someone could help me with this probably newbish question.
Thanks a lot in advance
Marcel M.
Comment