Announcement

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

  • specifying stars indicating p-values in the regression table

    Dear All,

    I want to to mark coefficients which p-value is smaller than 0,10 in the Word table with regression results. I used the following command:

    Code:
    esttab m1 m2 m3 using example.rtf, ///
    cells(b(star(+0.10 *0.05 **0.01 ***0.001) fmt(%9.3f)) se(par))  ///
    stats(r2_a N, fmt(%9.3f %9.0fc) labels("R-squared" "Observations"))   /// 
    legend label collabels(none) varlabels(_cons Constant) ///
    note(Standard errors are in parentheses. ) ///
    title({\b Table 2.} {\i OLS regresssion results}) replace
    I see the error message:
    option star() incorrectly specified

    Please help me. I don't understand what I'm doing wrong


  • #2
    I guess you need spaces there,

    Code:
     
     + 0.10 * 0.05 ** 0.01 *** 0.001

    Comment


    • #3
      Thank you for your answer. Unfortunately I got the same error message. I used the command eststo to store m1 m2 m3
      Last edited by sladmin; 28 Aug 2023, 08:36. Reason: anonymize original poster

      Comment


      • #4
        For the second time this week, I remind you that estout is from SSC, as you are asked to explain in FAQ Advice #12.


        Originally posted by Guest

        Code:
        cells(b(star(+0.10 *0.05 **0.01 ***0.001) fmt(%9.3f)) se(par)) ///
        I see the error message:
        option star() incorrectly specified

        The -starlevels()- option is not a sub-option of -cells()-. Place it outside that option and it should work. Also, if you abbreviate it, it is at least -starl()-.
        Last edited by sladmin; 28 Aug 2023, 08:36. Reason: anonymize original poster

        Comment


        • #5
          Please pardon me. I'm here since December but still feel like a new member. Thank you so much for your answer. I got the table with results.
          Last edited by sladmin; 28 Aug 2023, 08:36. Reason: anonymize original poster

          Comment

          Working...
          X