Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Post estimation command

    Hello,

    After running a conditional logistic regression on my data, I run the PREDICT command, which of course returns the predicted probability in percentage terms. Lets say I run the command, predict r1

    Is there a way for Stata to return the predicted probability divided by one, without doing a separate calculation?

    For example in the event predict returned 0.2500, how can I make it return 4 (1/0.2500) in the newly created r1 column?

    Thanks,
    Paul

  • #2
    Paul:
    as far as I know, you can only type:
    Code:
    predict pr, p
    replace p=1/p
    Kind regards,
    Carlo
    (Stata 19.0)

    Comment


    • #3
      Hi Carlos,

      Thanks for that, just needed a small modification...

      predict pr, p
      replace pr=1/pr

      Rgds,
      Paul

      Comment

      Working...
      X