Announcement

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

  • #16
    Thanks Andrew for educating Jinny and I. It hadn't occurred to me that eststo etc would work with an r class command.
    Richard T. Campbell
    Emeritus Professor of Biostatistics and Sociology
    University of Illinois at Chicago

    Comment


    • #17
      Thanks much Andrew! I really appreciate your responses. Have a great weekend! -Jinny

      Comment


      • #18
        Andrew Musau
        Hi Andrew!
        Thanks to your help, it worked out. But one trivial problem is that it doesn't fit the word file even after I change the layout to landscape.

        I guess one way would be to reduce the decimal points to maybe 2 decimal points.
        Is there a way to do that within the codes we have above?
        Dep1 Dep2 Dep3 Dep4 Dep5 Dep6 Dep7 Dep8
        text 10.38506*** 7.539053*** 7.468182*** 1.954231 12.42441*** 5.902875*** 10.58963*** 7.210639***
        non-text 6.018468*** 5.699753*** 39.40084*** 2.847632 5.824848*** 2.728182* 4.446948* 2.223688
        all 6.025876*** 5.432496*** 26.19421*** 1.90927 7.32324*** 4.725802*** 8.67458*** 3.535366***
        Thanks a lot,
        Jinny

        Comment


        • #19
          Andrew Musau

          I tried

          Code:
          mat t1= floor(r(F),2)
          But it does not work unfortunately.

          Thanks a lot,
          Jinny

          Comment


          • #20
            You control the display format within esttab. For my examples, for 2 dec. places, you need

            Code:
            cells(m(star pvalue(pval) fmt(%9.2f)))
            Otherwise, it is also possible to specify the width of the table using the options -varwidth()- and -modelwidth()-

            varwidth(#) specifies the number of characters used to display the names (labels) of regressors and statistics (i.e. varwidth specifies the width of the table's
            left stub). Long names (labels) are abbreviated (depending on the abbrev option) and short or empty cells are padded out with blanks to fit the width specified
            by the user. varwidth set to 0 means that the names are not abbreviated and no white space is added. Specifying low values may cause misalignment.

            modelwidth(# [# ...]) designates the number of characters used to display the results columns. If a non-zero modelwidth is specified, model names are abbreviated
            if necessary (depending on the abbrev option) and short or empty results cells are padded out with blanks. In contrast, modelwidth does not shorten or truncate
            the display of the results themselves (coefficients, t-statistics, summary statistics, etc.) although it may add blanks if needed. modelwidth set to 0 means
            that the model names are not abbreviated and no white space is added. Specifying low values may cause misalignment. Specify a list of numbers in modelwidth()
            to assign individual widths to the different results columns (the list is recycled if there are more columns than numbers).

            The purpose of modelwidth is to be able to construct a fixed-format table and thus make the raw table more readable. Be aware, however, that the added blanks
            may cause problems with the conversion to a table in word processors or spreadsheets.
            See

            Code:
            help estout
            for more options.

            Comment


            • #21
              Thank you so much Andrew Musau ! I really appreciate this!
              Best,
              Jinny

              Comment


              • #22
                Hi Andrew Musau ,

                Sorry to bother you, but I met a problem with your codes for the Ftest pvalue stars.

                If you see the Dep 4 results, there are no stars
                But if I actually look into the p-value, they are less than 0.1, so they deserve one star *.

                Could you please let me know what the problem is? This is also the same problem for Dep 8 non-text result. It deserves a star.

                For your convenience,

                this is the result table.
                Dep1 Dep2 Dep3 Dep4 Dep5 Dep6 Dep7 Dep8
                text 10.38506*** 7.539053*** 7.468182*** 1.954231 12.42441*** 5.902875*** 10.58963*** 7.210639***
                non-text 6.018468*** 5.699753*** 39.40084*** 2.847632 5.824848*** 2.728182* 4.446948* 2.223688
                all 6.025876*** 5.432496*** 26.19421*** 1.90927 7.32324*** 4.725802*** 8.67458*** 3.535366***
                Thanks again!
                Jinny
                Last edited by Jinny Koh; 18 Jul 2021, 16:17.

                Comment


                • #23
                  Andrew Musau
                  Code:
                  . *text
                  . test L8.x1 L8.x2 L8.x3 L8.x4 L8.x5
                  
                  
                         F(  5,  1124) =    1.95
                              Prob > F =    0.0829
                  
                  . mat t1= r(F)
                  
                  . mat p1= r(p)
                  
                  . *nontext
                  . test L8.x1 L8.x3
                         F(  2,  1124) =    2.85
                              Prob > F =    0.0584
                  
                  . mat t2= r(F)
                  
                  . mat p2= r(p)
                  As you see they deserve one star with these pvalues.

                  Comment


                  • #24
                    Hi Andrew,

                    it worked out this way!
                    esttab m* using ftestResults_all_8wks.rtf, replace star(* 0.10 ** 0.05 *** 0.01) cells(m(star pvalue(pval) fmt(%9.2f))) /// ...

                    I specified the star definitions!

                    Thanks a lot,
                    Jinny

                    Comment


                    • #25
                      The defaults are 0.001, 0.01 and 0.05. Probably best to indicate the levels in the notes. Use the -addnote()- option

                      Code:
                      addnote("* p<0.10, ** p<0.05, *** p<0.01")
                      Last edited by Andrew Musau; 18 Jul 2021, 18:10.

                      Comment

                      Working...
                      X