I have an ordinal outcome variable (0=None, 1=A little, 2=A lot). Following an ordinal regression I want to calculate predicted probabilities and their confidence intervals where the outcome is "A lot":
The upper bound of the last confidence interval is greater than 1:
To generate confidence intervals that are in the bounds of [0,1], I calculated linear predictions (the logit), which I would then transform (anti-logit). I've constrained all the independent variables to meet the proportional odds assumption so that the results are equivalent to ologit.
The p-values here are very different to those above. They both seem to be checking if the value is different from 0.
The invlogit function on the linear predictions produces the same values as for the predicted probabilities in the first block of output above. I was planning to similarly transform the confidence intervals, but will this give me 95% CIs equivalent to those generated by the margins command for predicted probabilities?
Obviously there's a gap in my understanding. Any insights or pointers will be greatly appreciated.
Kind regards,
Suzanna
Code:
ologit be_FAB_gp agescan_FAB i.be_ACFBAL_bi disease_ACFBAL margins, at(disease_ACFBAL=(0(3)9) be_ACFBAL_bi=0 (mean) agescan_FAB) predict(outcome(2))
Code:
------------------------------------------------------------------------------ | Delta-method | Margin Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- _at | 1 | .2147675 .0825899 2.60 0.009 .0528942 .3766407 2 | .3697546 .0766909 4.82 0.000 .2194433 .5200659 3 | .5572194 .1179079 4.73 0.000 .3261241 .7883147 4 | .7296877 .1527928 4.78 0.000 .4302195 1.029156 ------------------------------------------------------------------------------
Code:
gologit2 be_FAB_gp agescan_FAB be_ACFBAL_bi disease_ACFBAL,pl margins, at(disease_ACFBAL=(0(3)9) be_ACFBAL_bi=0 (mean) agescan_FAB) predict(xb o(#2))
Code:
------------------------------------------------------------------------------ | Delta-method | Margin Std. Err. z P>|z| [95% Conf. Interval] -------------+---------------------------------------------------------------- _at | 1 | -1.296424 .4897339 -2.65 0.008 -2.256285 -.3365633 2 | -.5332698 .3290943 -1.62 0.105 -1.178283 .1117433 3 | .2298846 .4778902 0.48 0.630 -.7067631 1.166532 4 | .9930389 .7746401 1.28 0.200 -.5252278 2.511306 ------------------------------------------------------------------------------
Code:
. di invlogit(-1.296424) .21476747 . di invlogit(-.5332698) .36975458 . di invlogit(.2298846) .55721938 . di invlogit(.9930389) .72968774
Obviously there's a gap in my understanding. Any insights or pointers will be greatly appreciated.
Kind regards,
Suzanna
Comment