Announcement

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

  • metan with sample size

    Hi all,

    I am working on meta-anaylsis. I have 4 studies with sample size, coefficients, p values and standard errors (also confidence intervals but only for two studies). Now I want to run meta-analysis. I used the code

    'metan Effect_value SE, random'

    However, it is not displaying study authors instead it shows 1, 2, 3, 4

    I also want to include study sample size using the following code

    'metan Effect_value SE, random n(sample_size)'

    Study_ID Effect [95% Conf. Interval] % Weight
    ------------------------+----------------------------------------------
    1 0.280 0.190 0.370 34.63
    2 0.240 0.150 0.330 34.63
    3 0.330 0.052 0.608 3.63
    4 0.170 0.068 0.272 27.10
    ------------------------+----------------------------------------------
    Overall,DL 0.238 0.185 0.291 100.00
    ---------------------------------------------------------------------
    I tried with forestplot option, then I found 10% heterogeneity, which was 0 using metan

    It would be great if someone could guide me where it went wrong and how to solve it

    Thank you
    Last edited by Pallavi Ch; 28 Feb 2025, 08:25.

  • #2
    version number? n() does not appear to be allowed in more recent versions. I think wgt() is the new option.

    lcols(Study_ID) will give you labels for the Study_ID. Or, you have Study_Name, you can lcols(Study_Name).

    providing sample sizes might be helpful.

    Comment


    • #3
      Hi,
      thank you for responding

      I am using STATA SE 18.5

      Sample sizes are as follows

      study 1- 89
      study 2- 204
      study 3- 202
      study 4- 2280

      Comment

      Working...
      X