Announcement

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

  • How to avoid scientific notation when displaying values after running the strate command

    Hello,

    Is there a way to avoid displaying scientific notation values after running the strate command. See example command and output below:

    Code:
     strate facility2
    Code:
     
             Failure _d: etec_pcr
       Analysis time _t: (enddate-origin)/365.25
                 Origin: time time0
      Exit on or before: time .
            ID variable: id
    
    Estimated failure rates
    Number of records = 6969
    
      +-------------------------------------------------------------------+
      |     facility2    D          Y        Rate       Lower       Upper |
      |-------------------------------------------------------------------|
      | Chainda South   63    1.3e+03   0.0498021   0.0389051   0.0637513 |
      |       Chawama    9   980.6845   0.0091773   0.0047751   0.0176379 |
      |        George   50    1.2e+03   0.0400737   0.0303725   0.0528734 |
      |       Kanyama   13    1.1e+03   0.0120983   0.0070250   0.0208356 |
      |        Matero    6    1.1e+03   0.0053123   0.0023866   0.0118246 |
      +-------------------------------------------------------------------+
       Notes: Rate = D/Y = failures/person-time.
              Lower and Upper are bounds of 95% confidence intervals.
    Any help rendered will be greatly appreciated.

    Best regards,

    Paul

  • #2
    You need the option -per()-to specify the units to be used in reported rates. Compare:

    Code:
    webuse diet, clear
    stset dox, origin(time doe) id(id) scale(365.25) fail(fail==1 3 13)
    stsplit ageband, at(40(10)70) after(time=dob) trim
    strate ageband
    strate ageband, per(1e+3)
    Res.:

    Code:
     strate ageband
    
             failure _d:  fail == 1 3 13
       analysis time _t:  (dox-origin)/365.25
                 origin:  time doe
                     id:  id
                   note:  ageband<=40 trimmed
    
    Estimated failure rates
    Number of records  =       729
    
      +-------------------------------------------------------------+
      | ageband    D          Y        Rate       Lower       Upper |
      |-------------------------------------------------------------|
      |      40    6   907.0062   0.0066152   0.0029719   0.0147246 |
      |      50   18    2.1e+03   0.0085428   0.0053823   0.0135591 |
      |      60   22    1.5e+03   0.0147325   0.0097007   0.0223746 |
      +-------------------------------------------------------------+
       Notes: Rate = D/Y = failures/person-time.
              Lower and Upper are bounds of 95% confidence intervals.
    
    
    . 
    . strate ageband, per(1e+3)
    
             failure _d:  fail == 1 3 13
       analysis time _t:  (dox-origin)/365.25
                 origin:  time doe
                     id:  id
                   note:  ageband<=40 trimmed
    
    Estimated failure rates
    Number of records  =       729
    
      +----------------------------------------------------+
      | ageband    D        Y      Rate    Lower     Upper |
      |----------------------------------------------------|
      |      40    6   0.9070    6.6152   2.9719   14.7246 |
      |      50   18   2.1070    8.5428   5.3823   13.5591 |
      |      60   22   1.4933   14.7325   9.7007   22.3746 |
      +----------------------------------------------------+
       Notes: Rate = D/Y = failures/person-time (per 1000).
              Lower and Upper are bounds of 95% confidence intervals.
    
    
    .

    Comment


    • #3
      Hello Andrew,

      Your feedback was really helpful. Thank you!

      Comment

      Working...
      X