Hi, I have run a gologit2 command on my dependent variabel comprising of four catergoies with autofit. It is however difficult to interpret the odds ratio and therefore I attempted to get the predicted probabilities for the same. I am using Stata 14.0 version and my independent variables are a mix of factor and continous variables along with some dummies.
I tried to first run the following command to find out the marginal effects
margins, dydx(*) atmeans post
The margins had negative values as well. However, I wanted to calculate the predicted probabilities for my model. The dependent variable has four categories so here as well the interpretation is confusing for me. I calculated the predicted probabilties using the following command
margins, dydx (*) atmeans predict (outcome(1)) predecit (outcome(2)) predecit (outcome(3)) predecit (outcome(4))
The results using both the commands are the same.
I understand that for prediction, the predict command has to be used, so after running the gologit model, i ran the following command as well
predict p1 p2 p3 p4
However, upon tabulation it says too many values.
Can someone please help me out
Thanks in advance
Related Posts with Predicted Probabilities using gologit2
Finding the estimated variance of residualsHello, I am fairly new to Stata and I have a question which I hope can be answered via this forum. …
How to find Corresponding values of 2 variables?Need help in determining which command to use in finding Corresponding values of 2 variables? My dat…
Comparing R2 across groupsHi, I was wondering if it is possible to test for significant differences in r squared across groups…
Problem interpolating data with mipolate with spline optionDear Nick Cox I believe I encounter a bug, or other wise unexpected behavior when trying to use the …
Multiple imputation STATA commandBelow is the command I am using to calculate the AUC for my prediction models in imputed datasets. I…
Subscribe to:
Post Comments (Atom)
0 Response to Predicted Probabilities using gologit2
Post a Comment