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
Panel Unit Root TestHello Everyone, I am working on studying the relationship between military expenditure (independent …
Making foreach go through multiple variables but stops when one criteria is metHi, I am trying to program a code that goes through variables pr1-25 (procedure codes) to create a n…
Using Interaction terms of independent variables and estimated values in fixed-effects regression using xtregGood evening, I am trying to estimate a fixed-effects model using xtreg command in stata 17.0. My …
Overlaying plots created with adjustrcspline and mfxrcsplineHi all, I've recently started using Maartin Buis's excellent tools for interpreting the results of …
Deleting the missing values (not entire observations) of a variableSuppose I have the following table: ID Preferences 1 2 1 . 1 . 2 . 2 3 3 . 3 . 3 …
Subscribe to:
Post Comments (Atom)
0 Response to Predicted Probabilities using gologit2
Post a Comment