Announcement

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

  • Smr

    I have downloaded the SMR ado from STB. However when I try to use it, I am getting :
    "command _crccip is unrecognized
    r(199); "

    I am using version 15. Any help appreciated as I am reconnecting to stata after several years.
    Thank you.
    -BT


  • #2
    smr seems to be from 1993 and written for Stata version 3. My guess is that _crccip was an undocumented command, that worked more than twenty years ago, but does no longer work in modern Stata. Even if it did work, I would not necessarily rely on an ancient user-written command to do something that you can probably get what you want from official Stata

    Code:
    help ci
    Best
    Daniel

    Comment


    • #3
      The SMR ado works in Stata 14. Insted the command "cii means #exp #obs, poisson" can be used in Stata 15.
      An example, if there are 902 expected and 979 observed cases you will get SIR=1.085 with 95% CI 1.018-1.156:

      cii means 902 979 ,poisson

      -- Poisson Exact --
      Variable | Exposure Mean Std. Err. [95% Conf. Interval]
      -------------+----------------------------------------------------------------------------------
      | 902 1.085366 .0346884 1.018434 1.155541

      Best,
      Erik

      Comment


      • #4
        _crccip has been superseded by invpoisson()

        https://www.statalist.org/forums/for...34#post1397934

        Comment

        Working...
        X