Announcement

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

  • esttab command

    Hi,
    ɪ have run a fixed effects regression and would like to export my results to a table in word.
    I have shown my results and then my attempt to export to a table below, my esttab command was successful, originally but I wanted to change the significance stars from the default, so I attempted to so by adding the starlevel option but this is not working , as can be seen in the screenshot below.
    Does anyone know why this is , and how ɪ could change the significance starsʔ

    Click image for larger version

Name:	invalid table command.PNG
Views:	1
Size:	35.1 KB
ID:	1377873


    Any help on this would be much appreciated,

    Many thanks

  • #2
    I don't see a starlevel option for esttab. Are you sure you don't mean star?
    -------------------------------------------
    Richard Williams, Notre Dame Dept of Sociology
    StataNow Version: 19.5 MP (2 processor)

    EMAIL: [email protected]
    WWW: https://www3.nd.edu/~rwilliam

    Comment


    • #3
      If starlevel is a legit option then I would try eliminating the extra spaces you have, e.g. between starlevel and (, and between * and * p<0.10, and see if that makes the error go away.
      -------------------------------------------
      Richard Williams, Notre Dame Dept of Sociology
      StataNow Version: 19.5 MP (2 processor)

      EMAIL: [email protected]
      WWW: https://www3.nd.edu/~rwilliam

      Comment


      • #4
        OK, starlevels is a legit option. But I think your syntax is wrong. Try something like

        esttab m1, starlevels(* 0.10 ** 0.05 *** 0.01)
        -------------------------------------------
        Richard Williams, Notre Dame Dept of Sociology
        StataNow Version: 19.5 MP (2 processor)

        EMAIL: [email protected]
        WWW: https://www3.nd.edu/~rwilliam

        Comment


        • #5
          Many thanks,
          This has worked , is there an option I could add to export this to word in a rich text format?

          Thank you

          Comment


          • #6
            Sorry to post unnecessarily but I think i have managed to export the table to word in a rich text format but I have another query,

            I have computed marginal effects for a categorical variable at different values of the continuous variable shown in the table below , i wanted to export these resulsts to a table in word using rtf, is there any way to do this? as when I try it just exports the results of the original regression

            Click image for larger version

Name:	marginal effects of league numer at different values of the lagged residual.PNG
Views:	1
Size:	36.9 KB
ID:	1377919

            Click image for larger version

Name:	table command.PNG
Views:	1
Size:	6.1 KB
ID:	1377920


            Table 10 only shows the results of the original regression rather than the results of the marginal effects shown above

            thanks so much for any help on this

            Comment


            • #7
              Add the post option to margins and see how that works.
              -------------------------------------------
              Richard Williams, Notre Dame Dept of Sociology
              StataNow Version: 19.5 MP (2 processor)

              EMAIL: [email protected]
              WWW: https://www3.nd.edu/~rwilliam

              Comment


              • #8
                Hi,
                I've tried and this was the result encountered

                Click image for larger version

Name:	invalid margins table command.PNG
Views:	1
Size:	2.9 KB
ID:	1377928


                Any ideas on this?

                Many thanks

                Comment


                • #9
                  See post #7. Try adding the -post- option to margins. Something like

                  Code:
                  webuse nhanes2f, clear
                  logit diabetes weight height
                  margins, at(weight = (30(10)180)) post
                  est store m1
                  esttab m1
                  How readable it is may be another matter. I might do something more like

                  Code:
                  webuse nhanes2f, clear
                  logit diabetes weight height
                  est store m1
                  margins, dydx(*) post
                  est store m2
                  esttab m1 m2
                  -------------------------------------------
                  Richard Williams, Notre Dame Dept of Sociology
                  StataNow Version: 19.5 MP (2 processor)

                  EMAIL: [email protected]
                  WWW: https://www3.nd.edu/~rwilliam

                  Comment


                  • #10
                    Can you please write me commands to try to replicate a data set used in Wooldridge Econometrics Analysis of Cross Section and Time series textbook (2001).
                    Using the data on the 428 working, married women in MROZ.RAW (from Mroz,
                    1987),

                    Comment

                    Working...
                    X