Hello, I am very novice in stata, and irritated because of very simple but rarely told about in this particular case...
I want to make an ordered logit model. Prior to input the dataset, I gathered survey results and encoded all the independent variables(x1~x5)' figures from character form into integer of 0 and 1(level of only one variable consists of 0, 1, and 2).
These are not ordinal, but just categorial.
And also I have a dependent variable(y) formatted from 1 to 7, which are ordinal.
In this case, don't I have to code like 'i.x1' or something like that? As I have studied so far, it creates dummy variables automatically, receiving non-numeric form...Am I right?
And with this kind of form, can I directly model the ordered logit, or do I have to preprocess further? Just for now, I didn't do further than this and got some results without an error, when I used command 'ologit y x1 x2 x3 x4 x5'.
I want to make an ordered logit model. Prior to input the dataset, I gathered survey results and encoded all the independent variables(x1~x5)' figures from character form into integer of 0 and 1(level of only one variable consists of 0, 1, and 2).
These are not ordinal, but just categorial.
And also I have a dependent variable(y) formatted from 1 to 7, which are ordinal.
In this case, don't I have to code like 'i.x1' or something like that? As I have studied so far, it creates dummy variables automatically, receiving non-numeric form...Am I right?
And with this kind of form, can I directly model the ordered logit, or do I have to preprocess further? Just for now, I didn't do further than this and got some results without an error, when I used command 'ologit y x1 x2 x3 x4 x5'.
Comment