Let's say I have a binary variable Y and an ordinal predictor X1 (i.e., X1 = 0, 1, 2, 3, 4, etc.). I regress Y on X1 in a logit, and the coefficient on X1 is -0.051293294, so the odds ratio of X1 is 0.95. Therefore, a one unit increase in X1 lowers the odds of Y = 1 by 5%.
Let's say I want to calculate the odds when X1 = 4. How do I calculate that in Stata? Since this is a nonlinear model, I can't simply do 5% * 4, correct? Is it appropriate to do -0.051293294 * 4 and then calculate the odds ratio of that value, which would be 0.81? Is it appropriate to call this an odds ratio?
Related Posts with Question about odds ratio for continuous variable of interest
heatplot assistanceHello dear statalist members, I'm working with the heatplot command and I have an issue with the lo…
3SLS fixed effects with panel dataI am trying to perform 3SLS with fixed effects in stata 16 and the command I put in is accepted and …
help with rowlast or rowfirstHello In my data, I have a number of columns beginning with gp_code_* ( aroound 100, but only a few…
loop over files in a folder to do an operation and save the combined result as datasetHello everyone!! I should specify, I am new to stata, so if i misuse terminology, please forgive me…
selection Problem out of huge amount of occupationsDear Stata Community, Iam almost new to stata and Iam kind of stuck with a problem. May someone can…
Subscribe to:
Post Comments (Atom)
0 Response to Question about odds ratio for continuous variable of interest
Post a Comment