Announcement

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

  • Confidence interva width

    Hi,

    I'm desiging a study with the primary objectives of assessing sensitivity and specificity of a diagnostic test.
    We have a certain sample size available and I would like to calculate a confidence interval width for a few anticipated sensitivity and specificty values (in %) given our sample size.
    Which command can I use for this?
    I was looking into ciwidth , however for this I can only find method mean or variance, whereas I would be working with proportions.

    Appreciate any guidance,
    Thanks
    Theresa

  • #2
    -ci proportions- (or -cii proportions-) will calculate confidence intervals for you. It will not calculate the width of the interval. But you can do that yourself following the command with
    Code:
    local width = r(ub)-r(lb)
    Read -help ci- to figure out whether you need -ci- or -cii-. It depends on what kind of data you are starting with.

    Comment


    • #3
      that did the job thank you!

      Comment

      Working...
      X