Announcement

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

  • Export margins table with Bonferroni correction

    Dear all,

    I have major problems in exporting my table (see below) of marginal effect -- command margins -- with the Bonferroni correction.

    I tried with the user-written command outreg2
    Code:
    outreg2 using margi, word replace

    but Stata exports only non-corrected intervals.

    This also happens when I save the margins in a separate file, e.g.:
    Code:
    margins, saving(tenure3, replace)
    I also tried with putdocx
    Code:
    putdocx begin
    putdocx table pairwise = etable
    putdocx save levels.docx , append
    but Stata exports only half of the table (the first part with the columns with df / F / P>F /..) , but not the second (starting with Contrast)

    If you could help in figuring out a solution, I would appreciate very much.
    Thank you and best regards,
    Lydia



    HTML Code:
    [HTML]Contrasts of adjusted predictions               Number of obs     =     52,582
    Model VCE    : Linearized                       Subpop. no. obs   =     20,351
    
    Expression   : Pr(event5), predict()
    
    ------------------------------------------------------------------------------------------
                                                |                                   Bonferroni
                                                |         df           F        P>F        P>F
    --------------------------------------------+---------------------------------------------
                                    tenure3@_at |
             (Owners vs Living with parents) 1  |          1        1.11     0.2931     1.0000
             (Owners vs Living with parents) 2  |          1        1.30     0.2550     1.0000
             (Owners vs Living with parents) 3  |          1        5.41     0.0200     0.2401
             (Owners vs Living with parents) 4  |          1        0.00     0.9834     1.0000
     (Public renting vs Living with parents) 1  |          1        9.05     0.0026     0.0316
     (Public renting vs Living with parents) 2  |          1        2.19     0.1389     1.0000
     (Public renting vs Living with parents) 3  |          1        0.36     0.5471     1.0000
     (Public renting vs Living with parents) 4  |          1        0.02     0.8883     1.0000
    (Private renting vs Living with parents) 1  |          1       11.78     0.0006     0.0072
    (Private renting vs Living with parents) 2  |          1        1.09     0.2975     1.0000
    (Private renting vs Living with parents) 3  |          1        1.33     0.2494     1.0000
    (Private renting vs Living with parents) 4  |          1        2.34     0.1260     1.0000
                                         Joint  |         12        3.25     0.0001
                                         Design |       8512
    ------------------------------------------------------------------------------------------
    Note: Bonferroni-adjusted p-values are reported for tests on individual contrasts only.
    Note: F statistics are adjusted for the survey design.
    
    ---------------------------
                 |    Number of
                 |  Comparisons
    -------------+-------------
     tenure3@_at |           12
    ---------------------------
    
    ---------------------------------------------------------------------------------------------
                                                |            Delta-method         Bonferroni
                                                |   Contrast   Std. Err.     [95% Conf. Interval]
    --------------------------------------------+------------------------------------------------
                                    tenure3@_at |
             (Owners vs Living with parents) 1  |   .0620314   .0589998     -.1070639    .2311268
             (Owners vs Living with parents) 2  |   .0351052   .0308387     -.0532797    .1234901
             (Owners vs Living with parents) 3  |   .0519636   .0223338      -.012046    .1159732
             (Owners vs Living with parents) 4  |     .00037   .0178059     -.0506623    .0514023
     (Public renting vs Living with parents) 1  |   .1159769   .0385467      .0055006    .2264532
     (Public renting vs Living with parents) 2  |   .0520548   .0351751     -.0487582    .1528678
     (Public renting vs Living with parents) 3  |   -.013985   .0232246     -.0805475    .0525775
     (Public renting vs Living with parents) 4  |    .003228   .0229858       -.06265     .069106
    (Private renting vs Living with parents) 1  |   .0599957   .0174823      .0098909    .1101005
    (Private renting vs Living with parents) 2  |   .0159804   .0153395     -.0279833    .0599441
    (Private renting vs Living with parents) 3  |   .0174491   .0151485      -.025967    .0608651
    (Private renting vs Living with parents) 4  |   .0363661   .0237669     -.0317506    .1044828
    ---------------------------------------------------------------------------------------------
    (note: file tenure3.dta not found)
    [/HTML]
Working...
X