Dear stata community,
I have a very basic stata question.
I have a dependent variable that has values from 1-10, thus is a categorical variable which is why I wanted to use a logistic regression.
However, I have longitudal data which is why I used the command: xtlogit.
Now stata tells me: outcome does not vary in any group
I thought maybe my dependent variable is not "labeled" as categorical in stata so that I have to first transform it but I would not know how or is there even a different problem?
Thank you soooo much for you help in advance.
Best
Lisa
I have a very basic stata question.
I have a dependent variable that has values from 1-10, thus is a categorical variable which is why I wanted to use a logistic regression.
However, I have longitudal data which is why I used the command: xtlogit.
Now stata tells me: outcome does not vary in any group
I thought maybe my dependent variable is not "labeled" as categorical in stata so that I have to first transform it but I would not know how or is there even a different problem?
Thank you soooo much for you help in advance.
Best
Lisa

I'm super happy that something so far works and maybe one further question before I do a bit more research on that topic: I also need to use a fiyed effects model (I did run the hausmann test before) plus I also have heteroscedasticity in my data which is why I wanted to use the vce(robust), however, I think I cannot use these commands with the xtologit, right? Should I then focus on another regression or should I look for other commands that go along with the regression or is it simply not possible?
Comment