Announcement

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

  • ipdmetan - estimation_command

    I would like to use ipdmetan to do an IPD meta-analysis for studies with treatment response yes/no as the outcome. The sample code provided shows how to set up the estimation_command for hazard ratios, but not for dichotomous or 2x2 format outcomes. Any help would be much appreciated, and apologies if this is a stupid question! I'm a primary care researcher without access to a biostatistician who works with IPD meta-analysis. David Fisher

  • #2
    Hi Mark Ebell ,

    ipdmetan is designed primarily for "two-stage" meta-analysis, where the first "stage" is a regression or GLM fitted to each trial in turn; and the second "stage" involves pooling the trial-specific estimation parameters together using standard meta-analysis methods.

    So, for example, if we have survival data, typical use would involve Cox regression, e.g.
    Code:
     . ipdmetan, study(studyname) ... : stcox ...

    ...and if we have 2x2 data we'd typically use logistic regression, e.g.
    Code:
     . ipdmetan, study(studyname) ... : logit ...

    But, as you will have noticed from reading the documentation, ipdmetan is more flexible than that. If you genuinely wish to perform IPD meta-analysis by directly analysing 2x2 data (rather than fitting regression models or GLMs), you would use
    Code:
    . ipdmetan outcome treat, rr study(studyname) ...
    where outcome is the 0/1 outcome indicator variable, and treat is the 0/1 treatment indicator variable. To analyse odds ratios or risk differences (rather than relative risks), replace "rr" in the above with "or" or "rd".

    Note that results will be the same as coding:
    Code:
    . gen byte a =  outcome *  treat
    . gen byte b = !outcome *  treat
    . gen byte c =  outcome * !treat
    . gen byte b = !outcome * !treat
    . collapse (sum) a b c d, by(studyname)
    . metan a b c d, study(studyname)

    I hope that helps!
    Thanks,
    David.

    Comment


    • #3
      Thank you, David, much appreciated. I'll dig into this today.

      Comment


      • #4
        I am trying to get the results as adjusted odds ratios rather than beta coefficients using this code and your sample dataset, with fail as the dependent variable and trt as the independent:
        ipdmetan, study(trialid) re by(region): logit fail trt, or
        ipdmetan, study(trialid) re by(region): logistic fail trt
        However, both of the above still result in a table of beta coefficients. How do I display the odds ratios, other than just doing the calculation post hoc?

        Thanks,

        Mark

        Comment


        • #5
          Hi Mark,
          The secret is to pass the request for exponentiated betas (that is, odds ratios) to ipdmetan rather than to the estimation_command . That is:
          Code:
          ipdmetan, study(trialid) re by(region) or : logit fail trt
          ipdmetan, study(trialid) re by(region) or : logistic fail trt
          This makes sense, as we are requesting output from ipdmetan and not from estimation_command .
          Thanks,
          David

          Comment


          • #6
            Thank you! As always, this non-statistician very much appreciates your help.

            Comment

            Working...
            X