I am running af oprobit model where my dependent variable is a categorial variable that can take the numbers 1-5. Where 1=excellent health, 2=very good, 3=good 4=fair and 5=poor
I om running the oprobit on 9 dummy variables where a 0 means the respondent does have the suffering (could be high blood pressure) and 1 is that the respondent does NOT have the suffering.
I make the predict just after running the oprobit. I then want to normalize the predictions between [0,1] so the respondents with the best health is closest to one
I am not sure have to go about this when my dependent variable can take 5 values. Normally when having a binary variable as my dependent variable predict is the probability og the binary variable being =1 given the explanatory variables. But what do I do when it is a categorial variable as the dependent variable?
This is what I do now
Is this the correct way?
I om running the oprobit on 9 dummy variables where a 0 means the respondent does have the suffering (could be high blood pressure) and 1 is that the respondent does NOT have the suffering.
I make the predict just after running the oprobit. I then want to normalize the predictions between [0,1] so the respondents with the best health is closest to one
I am not sure have to go about this when my dependent variable can take 5 values. Normally when having a binary variable as my dependent variable predict is the probability og the binary variable being =1 given the explanatory variables. But what do I do when it is a categorial variable as the dependent variable?
This is what I do now
Code:
oprobit Self_reported_health i.High_blood_pressure1 i.Diabetes1 i.Cancer1 i.Lung_problems1 i.Heart_problems1 i.Stroke1 i.Psychological_problems1 i.Arthritis1 i.obese1 predict p_Self_reported_health su p_Self_reported_health, meanonly gen normal_p_Self_reported_health = (p_Self_reported_health - r(min)) / (r(max) - r(min))
Comment