Announcement

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

  • Using estimation results in subsequent calculations

    I am struggling with something that, I suspect, is simple

    I am using cii to calculate a set of binomial confidence intervals

    A: cii prop 6162 23
    B: cii prop 100 57

    I wish to then use r(mean), r(ub) and r(lb) in subsequent calculations, but the calculations combine post estimation values from both proportions

    It is possible to store post estimation values from A, so I can combine them with post estimation values from B in a single calculation? E.g.

    disp r(ub)[A]/r(lb)[B], or similar

    Thanks!


  • #2
    Does https://www.stata.com/support/faqs/d...iate-commands/ help?

    Comment


    • #3
      I think I follow, thanks

      Is there a way of then combining e.g. the lb from e.g. calculation 1 with the ub from e.g. calculation 3, in a simple formula? E.g.

      disp (lb[1]/ub[3])*48 ..., or whatever

      I could do all of this manually, but it generates rounding errors

      Comment


      • #4
        That should work as long as ub and lb are variables in the dataset.

        Comment


        • #5
          Once I got my head around it, this worked beautifully - many thanks!

          Comment

          Working...
          X